02 · The hooks
Conviction lock
Lock the tokens you bought and the creator fee gets smaller.
Conviction lock lets a buyer choose a wait. A longer wait means a smaller fee. No wait means the full fee, and the tokens show up immediately.
What a trader sees
On a buy, the swap can carry a lock length in blocks. The fee is a straight line from the maximum, at zero blocks, down to the minimum, at the longest lock you allowed. The fee goes to the creator. If the buyer locked, the rest of the launch tokens sit in the hook until that buyer claims them. A sell is never locked and pays no fee here.
Max fee 1%, min fee 0.10%, longest lock 100 blocks. A buy with no lock pays 1% and the buyer keeps the tokens. A buy locked for 50 blocks pays 0.55%, and the buyer claims the rest after 50 blocks. A lock of 101 blocks reverts.
What you set
- The creator who receives the fee.
- The highest fee, the lowest fee, and the longest lock, in blocks.
Good to know
The locked tokens sit on this contract, including when the pool's hook is the hub. The buyer claims them here after the lock. A public router that is not the trusted one is treated as a single trader.
NextStabilizer rebateA repeated direction pays into a pot. The opposite trade can claim it back.