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!

Project Tasks

37 planning tasks
#1

Generate system requirement document

0m 58s0.05 cr used
Done
#2

Generate personas & user flows

0m 7s0.05 cr used
Done
#7

Create flow for Token Creator

0m 6sCredits in parent
Done
#8

Create flow for Trader

0m 5sCredits in parent
Done
#9

Create flow for Platform Operator

0m 5sCredits in parent
Done
#10

Landing

4m 4sCredits in subtasks
Done
#30

Fix Landing review finding: Q4 as reviewed now…

0m 17s0.1 cr used
Error
#29

Fix Landing review findings: The first step’s note is clipped in the non-scrollable… (+3 more)

0m 29s0.1 cr used
Done
#28

Fix Landing: The required wallet entry control only toggles a preview message () and does not enter…

1m 44sCredits unavailable
Error
#21

Landing / Navigation

0m 0s0.85 cr used
Done
#17

Landing / Top Rail

0m 25s0.85 cr used
Done
#18

Landing / Hero Stage

0m 44s0.85 cr used
Done
#19

Landing / Three Step Story

0m 39s0.85 cr used
Done
#20

Landing / Live Ticker

0m 27s0.85 cr used
Done
#22

Landing / Footer

0m 0s0.85 cr used
Done
#25

Fix Landing: The first step’s note is clipped in the non-scrollable in at tablet and mobile.

1m 26sCredits unavailable
Done
#26

Fix Landing: The sticky top-rail wordmark is truncated at mobile in .

1m 7sCredits unavailable
Done
#27

Fix Landing: The page renders both, creating two competing page-level headers with duplicate…

1m 7sCredits unavailable
Done
#23

Navigation

0m 23sCredits in parent
Done
#24

Footer

0m 22sCredits in parent
Done
#11

Homepage

2m 38sCredits in subtasks
Paused
#31

Homepage / Navigation Slot

0.85 cr needed
Paused
#32

Homepage / Market Header

0.85 cr needed
Paused
#33

Homepage / New Token Feed

0.85 cr needed
Paused
#34

Homepage / Trending Rail

0.85 cr needed
Paused
#35

Homepage / Live Ticker

0.85 cr needed
Paused
#36

Homepage / Footer Slot

0.85 cr needed
Paused
#12

Token detail page

2m 37sCredits in subtasks
Paused
#38

Token detail page / Navigation

0.85 cr needed
Paused
#37

Token detail page / Content

0.85 cr needed
Paused
#39

Token detail page / Footer

0.85 cr needed
Paused
#13

Create Coin

2m 37sCredits in subtasks
Paused
#14

Operator Dashboard

2m 37sCredits in subtasks
Paused
#15

Login

2m 37sCredits in subtasks
Paused
#16

Sign Up

2m 37sCredits in subtasks
Paused
#5

Architecture

0.05 cr needed
Paused
#6

Workspace task plan

0.05 cr needed
Paused
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