02 · The hooks
Buyer share
Sells pay a quote fee. The people who bought split that fee by what they spent.
Buyer share turns sell pressure into a pot for the buyers. A wallet's share matches the quote token it has spent and not yet claimed.
What a trader sees
A buy writes points equal to the quote token spent. A sell pays a fee, in the quote token the seller received, into the pot on this contract. Claiming pays that wallet's fraction of the pot and erases its points. Buying again starts a new claim on whatever the pot holds later. A wallet with no points has nothing to claim.
The fee is 10% of the quote a seller receives. One wallet buys with 1 quote token and is the only buyer. A later sell adds 0.10 to the pot. That wallet's claim pays the pot, and a second claim pays nothing until it buys again.
What you set
- The sell fee, in fee pips. 100,000 is 10%.
The fee tokens are pulled to this contract, including when the pool's hook is the hub. Claiming works in both setups. It burns the caller's points, so it is a cash-out, not a balance that keeps earning on its own.
NextCirculation leashBuys cannot run ahead of tokens sold, times a multiplier, plus a seed you set.