memecoin-launchpad

byDinesh Babar

Act as a Senior Web3 Full-Stack and Smart Contract Engineer. I want to build a decentralized memecoin launchpad and bonding curve platform similar to Pump.fun. Please design and write the complete codebase and architecture for this platform with the following specifications: 1. Target Blockchain & Tech Stack: - Blockchain: Solana (using Anchor framework / Rust) OR Ethereum/EVM (using Solidity, Hardhat/Foundry). Let's build for [Specify: Solana / EVM]. - Frontend: React.js / Next.js with Tailwind CSS. - Wallet Integration: Solana Wallet Adapter (Phantom, Solflare) or MetaMask/Rainbow for EVM. 2. Core Smart Contract / Program Features: - Token Factory: Allow any user to deploy a new memecoin with a name, ticker symbol, and image metadata (stored via IPFS or Arweave). - Bonding Curve Mechanics: - Implement a deterministic bonding curve (e.g., linear or exponential curve) where early buyers get a lower token price. - Define virtual reserves (e.g., virtual SOL and virtual token reserves) to govern the pricing formula (like Constant Product AMM: x * y = k). - Buy & Sell Functions: - `create_token`: Initializes the bonding curve state and mints supply. - `buy`: Handles native currency (SOL/ETH) in, transfers tokens out, deducts a small platform fee (e.g., 1%), and updates the curve state. - `sell`: Accepts token returns, deducts fees, and returns native currency to the user. - Graduation / Migration Milestone: - When the token's market cap or bonding curve reaches a specific target (e.g., \$69,000 market cap), automatically graduate the token by migrating the accumulated liquidity into a DEX pool (like Raydium on Solana or Uniswap on EVM) and burn the liquidity provider (LP) tokens to prevent rug pulls. 3. Frontend & UI Requirements: - Homepage showing a real-time feed of newly created tokens, trending tokens, and completion progress bars toward the DEX migration goal. - Token detail page with a live price chart (Candlestick/TradingView style), a trade panel (Buy/Sell interface with slippage settings), and a holder distribution list. - A "Create Coin" modal form to input Name, Ticker, Description, Image Upload, and Twitter/Telegram links. 4. Deliverables requested: - Step 1: The core Smart Contract / Rust (Anchor) or Solidity code with thorough comments. - Step 2: The TypeScript/JavaScript SDK or hooks to interact with the contract (buying, selling, creating). - Step 3: The Next.js frontend components for the token creation and trade view. - Step 4: A brief deployment and local testing guide. Please write clean, production-ready code with built-in safety checks against overflow, re-entrancy (for EVM), or unauthorized state manipulation.

Landing
Landing

Comments (0)

No comments yet. Be the first!

Architecture

No Services Diagrams Yet

Architecture diagrams will be automatically generated when the Project Manager creates tasks for your project.

Landing design preview
Landing: Read product explanation
Login: Verify provisioned wallet
Operator Dashboard: Review tokens near graduation
Operator Dashboard: 1. Confirm migration and LP burn
Operator Dashboard: 2. Retry failed confirmation
Operator Dashboard: 1. Update platform fee
Operator Dashboard: 2. Correct and resubmit fee
Token detail page: Open token for context
Landing design preview
Landing: Read product explanation
Login: Verify provisioned wallet
Operator Dashboard: Review tokens near graduation
Operator Dashboard: 1. Confirm migration and LP burn
Operator Dashboard: 2. Retry failed confirmation
Operator Dashboard: 1. Update platform fee
Operator Dashboard: 2. Correct and resubmit fee
Token detail page: Open token for context