Skip to content
Solana
SWITCHIn the programBit 12

King of the Pool

Each round's biggest single buy takes a prize from a pot recapture fills.

Where it runs

Switch

A switch inside another block.

Status on reel

In the program

In the reel program: bit 12 of PoolParams.blocks, frozen at PoolInit (PROGRAM.md §5).

Set by

You, at launch

Frozen in PoolParams at PoolInit; nobody can change it after.

What it does

Rounds align to UTC. The biggest single buy of each round leads; at the close the king, or a podium of two or three, takes a prize from a pot that arbitrage recapture and routed charges fill, capped by what the winning buy paid the protocol. Part of what is left streams to LPs every round.

How it works on reel

A pool joins the round in progress if at least half remains. The largest buy by gross spend A ≥ kotp_min_buy from an on-curve signer at top level leads; one place per wallet, a tie doesn't pass, and a sell in the same slot restores the podium. Each place's cap = ½·(protocol cut of LP Rewards + burn on that buy)·(1 − integrator). KotpSettle (anyone; the SDK prepends it to the first swap after a round) credits min(pot·share_i, cap_i, spend_i·rate₁) to ledgers and releases 1 − (1 − r)ⁿ of the rest to LPs.

Settings · 5

SettingMinDefaultMaxWhat it does
Pot share
kotp_pot_bps
0.01%25%50%Share of what the pool keeps from each recapture, after reel and the opener, that fills the pot.
Round length
kotp_round_secs
1 h1 day30 daysRounds align to UTC. A pool joins the round in progress if at least half of it remains.
Pot released per round
kotp_release_bps
25%50%100%Share of what is left in the pot after prizes that streams to LPs at each close.
Least buy that counts
kotp_min_buy
1 atomsAt launch—Quote atoms of gross spend a buy needs to take a place. Above 0; sized to the quote at launch.
Podium
kotp_podium
One kingOne kingTop three, 50/30/20How each round's pot is shared among its biggest buys.1 One king · 2 Top two, 70/30 · 3 Top three, 50/30/20

Fees and who's paid

Paid to

Kings, to their claim ledgers; LPs, through the released pot.

Protocol share

reel takes no share of it.

Requires and can't be combined with

Requires

  • LP Rewards or Auto Burn, so prizes have a cap above 0

Can't be combined with

Nothing: it sits beside any block.

Worked example

LP Rewards 2%, Auto Burn 1%, a 20% share: a winning 20 SOL buy paid reel 0.12 SOL, so its prize caps at 0.06 SOL. With a 0.6 SOL pot and 50% release, 0.27 SOL of the 0.54 SOL left streams to LPs.

Solana notes

Only an on-curve signer at top level can lead, Solana's stand-in for hookr's wallet-only rule. hookr's whole-pot core has no reel version.

On hookr: Switch inside Arb recapture · Live

Other blocks in Rewards