โ† Back to home

LaunchFi

Launch the next biggest meme coin, no team allocation, all on Uniswap - and customise your pre-sale token with exciting model ! (Exponential vs Dutch Auction) coupled with dynamic LP fees to punish sellers and reward LPs

Screenshots

LaunchFi screenshot 1
LaunchFi screenshot 2
LaunchFi screenshot 3
LaunchFi screenshot 4
LaunchFi screenshot 5
LaunchFi screenshot 6

Problem Statement

Our project uses Uniswap v4 hooks in a smart contract to allow users to launch their tokens using an exponential bonding curve ๐Ÿคฃ , a gradual Dutch auction ๐Ÿ‡ณ๐Ÿ‡ฑ, and linear decay for LP dynamic fees ๐ŸŒˆFor the exponential bonding curve, we have included a mathematical formula and graph in our video to better illustrate the relationship between token minting, pricing, and the exponential constant. This method is particularly useful for meme coin listings ๐Ÿ•.For the gradual Dutch auction, we chose this method to ensure fairness in token distribution and to incentivize early adopters. Additionally, it helps to prevent price manipulation, allows for better price discovery, and ensures that tokens are sold at a fair market value ๐Ÿ’ฐ.For LP dynamic fees with linear decay, the fees will be highest in the beginning to prevent token dumping and reward LP holders. As time progresses, the LP fees decrease for gradual price discovery without putting too much selling pressure ๐Ÿ’ฎ.

Solution

Integrating Uniswap v4 hook features into a smart contract for implementing a gradual Dutch auction and an exponential bonding curve for a token launchpad is a sophisticated approach.Below, we provide a detailed outline of how to approach this project, including key considerations and steps for implementation.Key ConceptsUniswap v4 Hooks:Hooks allow customisation of the behavior of swaps and other liquidity operations.Useful for implementing custom logic such as auctions and bonding curves.Gradual Dutch Auction:A type of auction where the price decreases over time until a bid is made.Implemented GDA based on Paradigm's research -> https://www.paradigm.xyz/2022/04/gdaSuitable for token launches to find market-driven prices.Exponential Bonding Curve:A pricing mechanism where the price of tokens increases exponentially as more tokens are bought.pump.fun style , to create hypeEnsures a fair distribution and price discovery based on demand.Linear LP Fees DecayDecay in the LP fees based on a fixed time period, fees will be highest initially and slowly reduced for price discoverySteps for ImplementationSet Up the Development Environment:Install required tools: Solidity, FoundryCreate a new project directory and initialize it using forgeInstall Uniswap v4 SDK and related dependencies.Design the Smart Contract:Define the smart contract that integrates Uniswap v4 hooks.Implement the logic for the gradual Dutch auction.Integrate the exponential bonding curve mechanism.Integrate Uniswap v4 Hooks:Utilize the hooks to capture and manage swaps and liquidity events.Ensure hooks are correctly integrated to enforce auction and bonding curve rules.Implement Gradual Dutch Auction Logic:Define the initial price and the decrement rate over time.Implement a function to update the price based on elapsed time.Ensure that once a bid is made, the auction stops, and the token is sold at the current price.Implement Exponential Bonding Curve:Define the bonding curve formula (e.g.,price = initial_price * e^(k * tokens_ninted)).Implement functions to handle token purchases and update the price accordingly.Ensure accurate token accounting and price updates based on the curve.Testing:Write unit tests to cover all scenarios, including price updates, auction bids, and bonding curve purchases.Deploy a local blockchain and test the contract using Hardhat or Truffle.Use tools like Mocha and Chai for test assertions.Deployment:Deploy the smart contract to a testnetVerify the contract on Blockscout.Test the live contract with small transactions to ensure functionality.Launch:Prepare for the mainnet deployment.Announce the token launch and provide instructions for participation.Monitor the launch for any issues and be ready to address them quickly.

Hackathon

ETHGlobal Brussels

2024

Prizes

  • ๐Ÿ†

    Most creative hook ideas1st place

    PancakeSwap

  • ๐Ÿ†

    Hooks, Hooks, and Hooks2nd place

    Uniswap Foundation

Contributors