Skip to content

BSC memecoin launchpad like pump.fun: ERC20 token factory, bonding curve sale with fees, and auto-liquidity migration to PancakeSwap. Includes Hardhat contracts, Node backend, and Next.js frontend.

Notifications You must be signed in to change notification settings

posimer/BSC-memecoin-launchpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BSC Memecoin Launchpad

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.

Contact Me

  • Telegram: @lorine93s

Highlights

  • 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

Tech Stack

  • Chain: BSC (EVM)
  • Contracts: Solidity + OpenZeppelin
  • Tooling: Hardhat + TypeScript
  • Backend: Node.js + TypeScript (Express)
  • Frontend: Next.js + React + TypeScript

Repo Structure

 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

Quickstart

Prerequisites

  • Node.js 18+
  • pnpm/npm/yarn

Install and Build

pnpm install # or npm install / yarn
pnpm build   # compiles contracts

Test

pnpm test

Deploy (example)

Configure network in hardhat.config.ts and set env vars before running:

pnpm hardhat run scripts/deploy.ts --network bscTestnet

Contracts Overview

  • 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

Roadmap

  • 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

License

MIT (proposed)


About

BSC memecoin launchpad like pump.fun: ERC20 token factory, bonding curve sale with fees, and auto-liquidity migration to PancakeSwap. Includes Hardhat contracts, Node backend, and Next.js frontend.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published