Skip to content

zerocoinsol/zero-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zero-bot

permissionless buyback+burn crank bot for the zero protocol on solana.

what it does

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.

architecture

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.

setup

npm install
cp .env.example .env
# fill in your values
npm start

env variables

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

program

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

how floor works

floor = reserve_lamports / circulating_supply

reserve grows  (dev rewards keep coming)
supply shrinks (tokens keep burning)

floor only goes up. math guarantees it.

license

MIT

About

permissionless buyback+burn bot for the zero protocol on solana

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages