[pad / catalog / burn / docs][] [FAQ] [Home]
4pad

The Keeper

The keeper is a small bot. It is the only part of 4pad that holds a private key, so this page says exactly what it does and what it can't.

What it does

On every run, in this order:

  1. Migrates full curves. For each thread whose curve has reached its target, it sends the migration transaction and pays the rent for the new pool. This is a convenience. Migration is permissionless and the thread page gives everyone the same button.
  2. Claims curve fees. For each thread, it claims the partner's share of bonding-curve trading fees. They arrive as 4CHAN in the burner's token account.
  3. Claims migration proceeds. For migrated threads, it withdraws the partner's share of any surplus and of the migration fee, when there is one.
  4. Claims pool fees. For each migrated pool, it claims the fees earned by the locked liquidity position.
  5. Burns. It burns the entire 4CHAN balance of the burner's token account in one BurnChecked instruction, with a memo naming where the 4CHAN came from. That transaction is what appears on the Burn Ledger.

It keeps nothing. The burner's 4CHAN balance is zero after every run.

The key

The keeper signs as the burner:

6XaN1h3FGM9aZFKLsVCEUtyE3pvTVWRJj4BVMc1Ga4JD

That address is the fee claimer of every 4pad config and the owner of every migrated pool's locked liquidity position. It also holds a little SOL to pay for its own transactions.

What the key can do:

  • claim fees that are already owed to the burner
  • burn tokens the burner holds
  • send tokens or SOL the burner holds to another address

What the key cannot do:

  • withdraw liquidity from any pool (it is permanently locked by the program)
  • change any fee, on any curve or pool, ever
  • mint, freeze or alter any coin
  • touch any user's funds
  • hide, edit or delete a post

The third item under "can" is the entire trust assumption of this project: the keeper is trusted to burn rather than keep. The amount exposed is whatever fees accrued since the last run. See Fees & Burns for why it is built this way for now and what replaces it.

If the keeper stops

Nothing is lost and nothing breaks.

  • Fees keep accruing inside the pools, unclaimed, where nobody can reach them except through the burner.
  • Full curves can be migrated by anyone from the thread page.
  • Trading and posting never depend on the keeper.

When it comes back, it claims and burns everything that built up.

Auditing it

The burner's 4CHAN token account, H3VCpkK9ZgJkarYhFehTBp9p98jcK3MtBrjo37fudraV, should only ever show:

  • inbound transfers from Meteora pool vaults (fee claims), and
  • burns.

An outbound transfer to any wallet would be a breach of everything on this site, and it would be on a public explorer forever. That is the check. Verify It Yourself has the commands.

Running one

The keeper is a script in the project (keeper/run.ts). It reads the same platform configuration as the site, discovers threads the same way the board does, and by default only prints what it would do. It sends transactions only when started with --execute.

node keeper/run.ts              # dry run: list pending migrations, claims and the burn
node keeper/run.ts --execute    # do it

It is meant to run from cron every minute or two. The only reason for the short interval is prompt migration; burns are batched whenever fees are above a small minimum.

Style:
About • Fees & Burns • Rules • Risks • Verify • Burn Ledger
4pad is an independent community project. It is not affiliated with, endorsed by, or operated by 4chan.
Coins launched here are made by their posters, not by 4pad. Most memecoins go to zero. Nothing on this site is financial advice.