Pump.fun-style launchpad for Binance Smart Chain: token factory + bonding curve sale + auto-liquidity migration to PancakeSwap. Includes Solidity contracts, a Hardhat toolchain, a TypeScript backend, and a minimal Next.js frontend.
- Telegram:
@lorine93s
- Token factory issues ERC20 tokens with fixed total supply
- Bonding curve sale (linear baseline) with platform fee to treasury
- Auto-liquidity migration hook for PancakeSwap and optional LP burn
- Backend API stubs for project creation and sale state
- Minimal Next.js UI scaffold
- Chain: BSC (EVM)
- Contracts: Solidity + OpenZeppelin
- Tooling: Hardhat + TypeScript
- Backend: Node.js + TypeScript (Express)
- Frontend: Next.js + React + TypeScript
bsc-memecoin-launchpad/
contracts/
Token.sol
TokenFactory.sol
BondingCurve.sol
LiquidityMigrator.sol
scripts/
deploy.ts
backend/
package.json
tsconfig.json
src/index.ts
frontend/
package.json
tsconfig.json
next.config.js
pages/index.tsx
hardhat.config.ts
package.json
tsconfig.json
.gitignore
README.md
- Node.js 18+
- pnpm/npm/yarn
pnpm install # or npm install / yarn
pnpm build # compiles contractspnpm testConfigure network in hardhat.config.ts and set env vars before running:
pnpm hardhat run scripts/deploy.ts --network bscTestnet- TokenFactory: deploys ERC20 token and optionally allocates inventory to the bonding curve
- BondingCurve: sells tokens for BNB on a simple linear curve with fee to treasury
- LiquidityMigrator: placeholder hook to create LP on PancakeSwap and burn LP tokens
Security notes:
- Use audited OpenZeppelin libraries
- Apply caps, cooldowns, and per-wallet limits if needed
- Thoroughly test migration logic on testnet
- Implement PancakeSwap router integration and LP burn logic
- Add creator fee/supply options and allowlists
- Indexer and events for sale analytics
- Frontend wallet connect and full flows
MIT (proposed)