02 · The hooks
Circulation leash
Buys cannot run ahead of tokens sold, times a multiplier, plus a seed you set.
Circulation leash keeps a launch from being bought out before anyone has sold back into it. The limit is the whole market, not one wallet.
What a trader sees
Every buy adds the launch tokens received to a running total. That total cannot pass the launch tokens sellers have paid in, times your multiplier, plus a seed. A buy past the line reverts. A sell always counts, and a sell is never blocked by this hook. After people sell, the room for later buys grows.
The seed is 1 launch token and the multiplier is 1x. Buys can take 1 token before anyone sells. A larger buy reverts and the total does not move. After sellers have put 2 tokens back, buys can have taken 3 in total.
What you set
- The seed, in launch tokens. It has to be greater than zero, or the first buy could never happen.
- The multiplier, in basis points. 10,000 is 1x. 20,000 means buys may take two tokens for each token sold, still plus the seed.
This is not a per-wallet cap and it is not a per-swap clip. A hundred small buys from a hundred wallets still share one leash.
NextThe hubThe one contract a stacked pool calls. It forwards each callback to your hooks.