permissionless buyback+burn crank bot for the zero protocol on solana.
1. claims creator rewards from pump.fun vault
2. deposits SOL into the on-chain reserve PDA
3. buys tokens on PumpSwap
4. burns tokens via the zero program
5. repeats every 60 seconds
floor = reserve / circulating supply. every burn reduces supply, every deposit increases reserve. floor only goes up.
pump.fun creator vault
│
▼ (claim)
bot wallet
│
▼ (deposit)
reserve PDA (on-chain, trustless)
│
▼ (buyback on PumpSwap)
tokens acquired
│
▼ (burn via zero program)
tokens destroyed forever
the bot is the crank. the program is the mechanism. anyone can run this bot.
npm install
cp .env.example .env
# fill in your values
npm start| variable | description |
|---|---|
RPC_URL |
solana RPC endpoint (helius/quicknode) |
PRIVATE_KEY |
bot wallet private key (JSON array) |
TOKEN_MINT |
token mint address |
PROGRAM_ID |
zero program ID |
PUMPSWAP_POOL |
PumpSwap pool address |
MIN_BUYBACK_AMOUNT |
min reserve (lamports) before buyback |
CHECK_INTERVAL_MS |
cycle interval in ms |
the zero program is deployed at:
7hva3QBzj1csCrzg9cczwsnxEkH2DMtuzi7e1FxE2YuC
instructions:
initialize— create state + reserve PDA (once)deposit— send SOL to reserve (permissionless)execute_buyback— burn tokens, reimburse SOL from reserve (permissionless)get_floor_price— emit floor price event
floor = reserve_lamports / circulating_supply
reserve grows (dev rewards keep coming)
supply shrinks (tokens keep burning)
floor only goes up. math guarantees it.
MIT