A truly universal token launchpad platform built on Push Chain, featuring token creation, marketplace listing, and bonding curve mechanics for liquidity provision. Launch, trade, and manage ERC20 tokens with enterprise-grade security and automated price discovery from any supported chain.
- Token launches are isolated to single blockchains
- Liquidity is split across multiple networks
- Users can't participate if they don't have assets on the specific chain
- Users must bridge assets between chains (expensive & time-consuming)
- Network switching creates poor UX
- High barriers to entry for new users
- Gas fees on multiple chains
- Users locked out if they only hold assets on different chains
- Complex setup required (wallets, bridges, gas tokens)
- Fragmented user base across ecosystems
- Liquidity trapped on single chains
- Arbitrage opportunities but high friction
- Suboptimal price discovery
Hodl.fun is a universal token launchpad that enables users to launch and trade tokens using any asset from any chain β without bridging or network switching.
- Launch tokens and accept payments in ETH, SOL, or any supported asset
- Users trade with whatever assets they already hold
- No need to bridge or acquire specific chain tokens
- Fair launch mechanism with automated market making
- Price discovery through bonding curve mathematics
- Liquidity bootstrapping without upfront capital
- Built on Push Chain's universal account system
- Single wallet works across all chains
- Seamless multi-chain experience
- No waiting for bridge confirmations
- Real-time trading execution
- Native cross-chain liquidity
- Deploy ERC20 tokens with metadata (name, symbol, logo, description)
- Automatic marketplace listing
- Built-in bonding curve liquidity
- No pre-mine or insider allocation
- Bonding curve ensures fair price discovery
- Configurable reserve ratio (10β90%)
- Bonding curve provides instant liquidity
- No need for initial liquidity provision
- Automatic graduation to full trading at 100 ETH market cap
- IPFS-stored metadata (logo, description, social links)
- Professional token pages
- Social integration (Twitter, Telegram, Website)
- Trade with any asset (ETH, SOL)
- No bridging required
- Single wallet for all chains
- Bonding curve pricing
- Live market data
- Price charts and analytics (coming soon)
- Track all your token holdings
- View profit/loss
- Transaction history (coming soon)
- Browse all launched tokens
- Filter by market cap, holders, age
- Search by name/symbol
- Real-time updates
- Buy/sell tokens directly
- Slippage protection
- Gas-optimized transactions
- Price charts with OHLC candles (In Development)
- Trading volume metrics
- Total portfolio value
- Asset details
hodl.fun/
βββ frontend/ # Next.js 15 frontend application
β βββ src/
β β βββ app/ # Next.js app router pages
β β βββ components/ # React components
β β βββ hooks/ # Custom React hooks
β β βββ lib/ # Utility libraries
β β βββ config/ # Contract ABIs and addresses
β β βββ contexts/ # React context providers
β βββ package.json
β
βββ smart-contract/ # Foundry smart contracts
βββ src/
β βββ LaunchpadToken.sol # ERC20 token implementation
β βββ TokenMarketplace.sol # Bonding curve marketplace
β βββ TokenFactory.sol # Token creation factory
β βββ interfaces/ # Contract interfaces
β βββ utils/ # Utility libraries
βββ test/ # Comprehensive test suite
βββ script/ # Deployment scripts
βββ foundry.toml
- Node.js 18+ and npm/yarn/pnpm
- Foundry for smart contract development
- Git for version control
- Clone the repository
git clone https://github.com/yourusername/Hodl.fun.git
cd hodl.fun- Install frontend dependencies
cd frontend
npm install- Install smart contract dependencies
cd ../smart-contract
forge installcd frontend
npm run devOpen http://localhost:3000 to view the application.
cd smart-contract
# Compile contracts
forge build
# Run tests
forge test
# Run tests with verbosity
forge test -vvvCreate a .env file in the frontend directory:
# Push Chain RPC URLs
NEXT_PUBLIC_RPC_URL=https://evm.rpc-testnet-donut-node1.push.org/
NEXT_PUBLIC_RPC_URL_ALT=https://evm.rpc-testnet-donut-node2.push.org/
# Contract Addresses (update after deployment)
NEXT_PUBLIC_FACTORY_ADDRESS=0x...
NEXT_PUBLIC_MARKETPLACE_ADDRESS=0x...
# Chain Configuration
NEXT_PUBLIC_CHAIN_ID=42101
NEXT_PUBLIC_CHAIN_NAME=Push Chain TestnetCreate a .env file in the smart-contract directory:
# Deployment Configuration
PRIVATE_KEY=your_private_key_here
FEE_COLLECTOR=0x_your_fee_collector_address
# RPC URLs
RPC_URL=https://evm.rpc-testnet-donut-node1.push.org/
# BlockScout API (for verification)
ETHERSCAN_API_KEY=blockscout| Contract | Description | Size | Gas Cost |
|---|---|---|---|
| TokenFactory | Creates and deploys new tokens | ~12KB | 2.8M |
| TokenMarketplace | Handles bonding curve trading | ~20KB | 3.5M |
| LaunchpadToken | ERC20 token with enhanced features | ~15KB | 2.7M |
User Request
β
TokenFactory.createToken()
β
Deploy LaunchpadToken
β
Auto-list on TokenMarketplace
β
Bonding Curve Trading
β
Liquidity Threshold (100 ETH)
β
Full Trading Enabled
- Framework: Next.js 15.5.4 with App Router
- Language: TypeScript 5
- Styling: TailwindCSS 4
- UI Components: Radix UI + shadcn/ui
- Web3: ethers.js 6.15.0
- Wallet: @pushchain/core & @pushchain/ui-kit
- Icons: Lucide React
- Retro UI: pixel-retroui
Test Coverage: 11/11 tests passing (100%)
- β Token creation and validation
- β Marketplace trading mechanics
- β Bonding curve calculations
- β Access control enforcement
- β Fee collection and distribution
- β Edge cases and error handling
This project is licensed under the MIT License - see the LICENSE file for details.