BoomFun Protocol is a decentralized platform for creating, trading, and managing tokenized assets on the Ethereum blockchain. The protocol leverages bonding curves to provide a fair and transparent pricing mechanism for digital assets.
BoomFun Protocol enables creators to launch their own tokens with an automated market maker and built-in liquidity. The protocol features:
- Bonding curve-based token pricing
- Automatic transition to DEX liquidity pools when reaching market cap thresholds
- Seamless integration with Uniswap V2
- Platform fees for sustainability
- Transparent and predictable token economics
The project includes three main smart contracts:
- BoomFunProtocol.sol: The core protocol contract that manages token creation, pricing via bonding curves, and DEX transitions.
- BoomFunToken.sol: The token contract used by the protocol to create tokens for creators.
- BoomToken.sol: A utility token for testing the protocol.
- Node.js (v14+)
- npm or yarn
- Hardhat
# Clone the repository
git clone <repository-url>
cd boomfun-protocol
# Install dependencies
npm installRun the test suite with:
npx hardhat testDeploy to a local Hardhat network:
npx hardhat node
npx hardhat run scripts/deploy.js --network localhostDeploy to a testnet or mainnet (configure your .env file first):
npx hardhat run scripts/deploy.js --network <network-name>The protocol uses a custom bonding curve formula to determine token prices:
- Token price increases as more tokens are purchased
- Price is calculated using the formula:
y = A - (B / (30 + x/3000)) - Parameters A and B are configured to provide reasonable price appreciation
When a token reaches a predefined market cap threshold (263,300 tokens), it transitions to the DEX phase:
- Remaining tokens and collected funds are used to create permanent liquidity on Uniswap V2
- After the transition, tokens can only be traded through the DEX
This project is licensed under the ISC License.