02 · The hooks
Drawdown fee
Sells are cheap near the last buy. They get expensive once the launch token has fallen.
Drawdown fee watches the price buyers last paid. A sell does not get to drag that anchor down.
What a trader sees
The anchor starts at the opening price and moves only when someone buys. A sell near that anchor pays the calm fee. Once the launch token has fallen past the band, sells pay the stress fee, and they keep paying it until a buy sets a new anchor.
Calm fee 0.30%, stress fee 10%, band 50 bps of the sqrt price. After a large sell moves the price through that band, the next sell pays 10%. A buy brings the fee back to 0.30%.
The pool must use a dynamic fee. If the launch token is currency1, a fall is a higher sqrt price. If it is currency0, a fall is a lower sqrt price.
NextSell delayAfter you buy, you wait before you can sell. A later buy starts the wait over.