Skip to content

basedotfun26-dotcom/basefundotapp

Repository files navigation

basefun

A bonding-curve token launchpad on Base where every token is paired with a real perpetual position on Avantis.

A token's price moves from two sources: trading activity on the bonding curve, and the leveraged performance of an underlying asset (BTC, ETH, SOL, 99+ Avantis markets).

🌐 Live: basefun.app · 🐦 @basefundotapp · 💬 t.me/basefunapp

How it works

  1. Create — pick name, image, underlying market, direction (long/short), leverage (2× / 3× / 5×). Mandatory ≥ $20 USDC initial buy. Supply and fee recipient are immutable at launch.
  2. Trade — buy and sell with USDC on the bonding curve. 1% swap fee (0.5% protocol + 0.5% creator), paid inline (no claim step).
  3. Graduate — when the curve hits $10,000 reserve, $9,700 + 242.5M tokens seed a Uniswap V2 pool with LP burned at 0xdead. Post-graduation market cap lands at exactly $40,000.
  4. Trade on Uni V2 — once graduated, the basefun TradeBox routes swaps through the Uniswap V2 router automatically.

Full design in the whitepaper.

Stack

  • Contracts — Solidity 0.8.24, Foundry. packages/contracts/
  • Web — Next.js 15 App Router, wagmi v2, RainbowKit. apps/web/
  • API + indexer — Fastify, Prisma, viem, Postgres. apps/api/
  • Keeper bot — viem, Avantis integration, auto-migration. apps/keeper/
  • Telegram alerts — @basefunappbot, posts launch alerts. apps/tgbot/

Mainnet addresses (Base)

Contract Address
FactoryV2 0x4ac796dcff36374f3b19dfc0ae1f109e923e48a6
LTFactory 0xe082d0d78bf83846b0ea321fe794867e4b6c3779
USDC (Base) 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Uni V2 Router 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24
Avantis Trading 0x44914408af82bC9983bbb330e3578E1105e11d4e

Both FactoryV2 and LTFactory source code are verified on BaseScan.

Local development

pnpm install
pnpm contracts:build
pnpm contracts:test
pnpm db:generate
pnpm dev

Required env vars are documented in each app's .env.example:

  • apps/api/.env.example
  • apps/web/.env.example
  • apps/keeper/.env.example
  • apps/tgbot/.env.example

License

MIT — see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors