Empowering Token Creators: Ushering in a New Era of Fair Launch Token Distribution.
XLaunchPad is a decentralized platform specializing in fair token launches through automated bonding curve mechanisms. By transforming token creation into a transparent, mathematical process, we empower creators to launch tokens fairly while giving early supporters the opportunity to participate in genuine price discovery. This creates a win-win ecosystem for creators, early investors, and the broader DeFi community.
Fair Launch for Creators – Token creators can launch without pre-sales or insider allocations, ensuring genuine community-driven price discovery.
Early-Stage Investment Access – Investors can buy tokens during the bonding curve phase and benefit from mathematical price progression.
Guaranteed DEX Liquidity – Every successful token gets automated PancakeSwap liquidity provision for seamless trading post-migration.
- Mathematical price progression with constant product pricing function
- Participants buy tokens using NativeToken during the trading phase
- Smart contract protections:
- Transparent pricing eliminates manipulation
- Continuous liquidity through automated market maker
- Fair entry for all participants without insider advantages
- Automated smart contract execution:
- 800M tokens sold triggers manually migration to PancakeSwap
- Accumulated NativeToken paired with 200M tokens to form the PancakeSwap liquidity pool
- The token market value reaches the corresponding threshold(e.g. On BSC, the token market value reached 104 BNB)
- LP tokens are permanently locked to ensure long-term stability
- For token holders:
- Seamless transition from bonding curve to DEX trading
- Guaranteed liquidity for long-term trading
- Trading Phase: Bonding curve active, users can buy/sell tokens
- Migrating Phase: Migration triggered, preparing DEX liquidity
- Migrated Phase: Tokens tradable on PancakeSwap with locked liquidity, triggered manually by the factory contract's migrate role.
- Total fixed supply: 1 billion tokens, allocated as follows:
- Bonding Curve Sales: 800M tokens sold to community through curve
- DEX Liquidity: 200M tokens paired with accumulated NativeToken for PancakeSwap
- Protocol Reserves: Managed through smart contract automation
- Migration Trigger: The migration condition is triggered when the total sold tokens reach 800 million and the accumulated NativeToken reaches the corresponding threshold (e.g. BNB on BSC net inflow of 20.8 BNB, with the token market value reaching 104 BNB).
- Pricing Basis Reserves (Curve Parameters) and Formula:
- x0 (Token Side Basis Reserve) = 1,066.666M
- y0 (NativeToken Side Basis Reserve) = 6.933 NativeToken
- Buy (Receive Tokens): tokensOut = (nativeTokenIn * currentTokens) / (currentNativeToken + nativeTokenIn)
- Sell (Receive NativeToken): nativeTokenOut = (tokensIn * currentNativeToken) / (currentTokens + tokensIn)
- Where: currentTokens = x0 − tokensSold currentNativeToken = y0 + nativeTokenRaised
- The above is constant product approximation pricing (used for pricing basis reserves, not actual on-chain balances)
XLaunchPad provides a streamlined token creation process using the Beacon Proxy pattern:
- Beacon Proxy Deployment: Efficient contract deployment using the Beacon Proxy pattern
- Immediate Initialization: The token pool contract is deployed and initialized in a single transaction
- Optional Initial Purchase: Creates and makes an initial purchase simultaneously
Creation Process:
- Contract Deployment: Deploys a new BeaconProxy instance pointing to the XLaunchPad implementation
- Auto-Initialization: The deployed contract is immediately initialized with:
- Token name and symbol
- Creator address for xLaunchPad contract
- PancakeSwap router integration
- Factory contract reference
- Optional Initial Purchase: Include the native token (e.g., BNB) in the creation transaction for immediate purchases
- Event Emitted: A creation event is sent along with all relevant contract addresses
- Register: New launches are automatically registered in the factory's launch registry
During each trade, the protocol charges a fee defined by feeBps (basis points over 10,000) and splits this protocol fee between the platform (dev) and the token creator according to creatorFeeBps.
feeBps: total protocol trading fee in basis points (e.g.,feeBps = 100means a 1% fee on the trade amount).creatorFeeBps: the share of the total protocol fee sent to the creator, expressed in basis points over 10,000.- (Example: if
creatorFeeBps = 1000, then the creator receives1000 / 10000 = 10%of the total protocol fee collected.)
- (Example: if
- The remaining portion of the protocol fee is sent to the platform's
devaddress. - The creator fee is sent to the
claim contractand creator need to claim rewards manually in the contract.
| Feature Module | Implementation | User Value |
|---|---|---|
| Bonding Curve Trading | Mathematical square root pricing | Fair price discovery without manipulation |
| NativeToken Purchases | Smart contract + automatic pricing | Simple participation with transparent costs |
| Automated DEX Migration | Deep PancakeSwap integration | Guaranteed liquidity solving cold-start issues |
| Three-Phase Lifecycle | State machine + migration triggers | Clear progression from launch to established trading |
| Factory Pattern | Beacon proxy + role management | Scalable platform for multiple token launches |
| Router (Trading) | Factory-linked buy/sell routing | Simple and safe trading UX with pre-trade |
| claim distribution | Configurable claim contract | Controlled distributions platform policy |
Secure Smart Contracts: Audited bonding curve contracts with automated migration functionality
Cross-Platform Integration: Mathematical pricing + automated PancakeSwap liquidity deployment
On-Chain Transparency: All token distributions and migrations verifiable via blockchain explorer (e.g. BSC Explorer)
Beacon Proxy And TransparentUpgradeableProxy Pattern: Efficient contract deployment and upgradeability with address-based access control
Role-Based Access Control: Granular permissions for token creators, migration role MIGRATE_ROLE, and platform administrators
Q: Is there a fee to launch a token? A: Minimal gas fees only! The platform takes a small percentage during trading.
Q: How are malicious tokens prevented? A: Three-layer protection system:
- Mathematical bonding curve prevents price manipulation
- Automated migration eliminates rug pull risks
- Community-driven price discovery ensures fair valuation
Q: How do token creators benefit? A: Beyond fair launch mechanics, they gain:
- Transparent price discovery for their tokens
- Guaranteed DEX liquidity upon migration
- Community-driven growth without insider advantages
Installation
npm installCompile Contracts
npx hardhat compileDeploy Contracts
npx hardhat run scripts/deploy.js --network bscRun Tests
npx hardhat testVerify Contracts
npx hardhat verify --network bsc <contract_address>This analysis is prepared for audit purposes and reflects the current implementation of XLaunchPad contracts. All technical details are based on the smart contract code and should be verified during the audit process.