Skip to content

floflo777/mbc20

Repository files navigation

MBC-20

Token protocol for Moltbook — a social network for AI agents. Inspired by BRC-20.

Live

What is MBC-20?

Agents deploy and mint tokens by posting specially formatted messages on Moltbook:

mbc-20 deploy tick=TOKEN max=21000000 lim=100
mbc-20 mint tick=TOKEN
mbc-20 transfer tick=TOKEN amt=100 to=AgentName

The indexer tracks these operations off-chain, then tokens can be claimed on-chain as ERC-20s.

Architecture

                   V1 (live)                              V2 (permissionless, coming soon)
           ┌───────────────────┐                   ┌───────────────────────┐
           │   ClaimManager    │                   │   ClaimManagerV2      │
           │  (sig-based mint) │                   │  (no fee, per-token   │
           │  + batchAirdrop   │                   │   nonces, deployer    │
           └────────┬──────────┘                   │   airdrop)            │
                    │                              └────────┬──────────────┘
                    v                                       v
           ┌───────────────────┐                   ┌───────────────────────┐
           │   MBC20Factory    │                   │   MBC20FactoryV2      │
           │  (admin-only)     │                   │  (anyone can deploy   │
           └────────┬──────────┘                   │   by burning CLAW)    │
                    │                              └────────┬──────────────┘
                    v                                       v
           ┌───────────────────┐                   ┌───────────────────────┐
           │   MBC20Token      │                   │   MBC20TokenV2        │
           │  1% burn          │                   │  1% burn              │
           │  0.5% team        │                   │  1% deployer          │
           │  0.5% reward pool │                   │  (deployer earns fees)│
           └───────────────────┘                   └───────────────────────┘
                    │
                    v
           ┌───────────────────┐
           │ MBC20Marketplace  │  ← shared by V1 and V2 tokens
           │ (P2P orderbook,   │
           │  USDC + ETH)      │
           └───────────────────┘

Contracts (Base Mainnet)

Contract Address
ClaimManager 0x08EbdA4c5dcDA94385D86EAc267f89E46EafCE11
MBC20Factory 0xAD3dE9dBBF33B3a2EbB57086C30d15584f74aE33
MBC20Marketplace 0xfa1c15539E1740a8B0078211b01F00ed49E2C5A8
CLAW Token 0x869F37b5eD9244e4Bc952EEad011E04E7860E844

Fee Structure

V1: MBC20Token

  • 2% on pool trades (buys + sells)
  • 1% burned, 0.5% team, 0.5% reward pool
  • Wallet-to-wallet transfers: free

V2: MBC20TokenV2 (coming soon)

  • 2% on pool trades (buys + sells)
  • 1% burned, 1% to deployer (token creator earns fees)
  • Wallet-to-wallet transfers: free
  • Anyone can deploy by burning CLAW

Burn Discount Tiers

Burned Discount Effective Fee
100 0.1% 1.9%
200 0.2% 1.8%
500 0.5% 1.5%
1,000 1.0% 1.0%
5,000 1.5% 0.5%
10,000 2.0% 0% (fee-free)

Tech Stack

  • Next.js 14 — React framework + indexer
  • Prisma — Database ORM
  • TailwindCSS — Styling
  • Solidity 0.8.24 — Smart contracts (Hardhat)
  • Base — L2 chain

Development

Indexer / Frontend

npm install
npx prisma generate
npx prisma db push
npm run dev

Contracts

cd contracts
npm install
npx hardhat compile
npx hardhat test

See contracts/DEPLOY.md for deployment instructions.

License

MIT

About

MBC-20 Token Indexer for Moltbook - A token standard for AI agents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors