createToken: Allows users to create a new token by paying the required creation fees.buy: Users can contribute Ether (ETH) to purchase tokens during the funding phase. The price of tokens increases based on the bonding curve mechanism.sell: Users can sell their tokens during the funding phase. The contract calculates how much ETH the user will receive, based on the amount of tokens sold, and deducts the corresponding amount from the token's collateral.setBondingCurve: Allows the owner to set the bonding curve contract.setFeePercent: Allows the owner to set the fee percentage for transactions.claimFee, claimETH, claimToken: Functions to allow the contract owner to claim fees, ETH, or tokens from the contract.createLiquidityPool: Creates a liquidity pool on Uniswap V2 for the token.addLiquidity: Adds liquidity to the Uniswap pool using ETH and the token.burnLiquidityToken: Burns liquidity tokens after adding them to Uniswap to maintain a deflationary effect.Price = A * exp(B * x) / (exp(B * x) - 1)A is a constant derived from the funding goal and funding supply.B is a constant derived from the funding goal and the total funding supply.x is the total supply of tokens.MAX_SUPPLY: Maximum number of tokens that can ever be minted (1 billion tokens).INITIAL_SUPPLY: Initial supply of tokens allocated for the creation phase (20% of MAX_SUPPLY).FUNDING_SUPPLY: The total supply of tokens available for funding (80% of MAX_SUPPLY).FUNDING_GOAL: The target funding goal for the token (100 Ether).feePercent: The percentage fee taken on every transaction (buy/sell).collateral: Tracks the amount of Ether raised for each token during the funding phase.tokens: A mapping to track the state of each token (whether it’s in the NOT_CREATED, FUNDING, or TRADING phase).TokenCreated: Emitted when a new token is created.TokenLiqudityAdded: Emitted when liquidity is added to Uniswap for a token.Buy: Emitted when a user buys tokens.Sell: Emitted when a user sells tokens.BondingCurve contract to determine the token price during the funding phase.Posted Sep 13, 2025
Developed SeiPAD, a decentralized token creation and trading platform with bonding curves.