The current Ethereum v4 hook cohort is remarkably uniform. Every project below intercepts a
swap, skims a fee, and routes it somewhere clever — holders, burns, tokenised equities,
NFT holders. Nobody touches beforeSwapReturnDelta, the one primitive that lets
a hook stop taxing the constant-product curve and replace it outright.
[ 01 ]ASK
A curve, integrated exactly
The marginal price is p₀ + slope · s / T. Trades are priced by integrating
that line across the trade, not by quoting one price for the whole size — so nobody
sweeps the book at the pre-trade ask.
This is where upside comes from. It is arithmetic, not a promise.
[ 02 ]BID
The floor is the average price ever paid
F = reserveETH ÷ circulating. Not a treasury policy, not a buyback budget —
the arithmetic mean of every wei that entered the contract. Redeemable by anyone, any
time, minus the exit fee.
Sell pressure does not drain it. Sell pressure raises it.
[ 03 ]PROOF
The invariant is enforced, not asserted
_assertFloorNonDecreasing re-derives the floor after every single swap and
reverts the transaction if it fell. There is no path through the contract that lowers it.
Five stateful invariants, 4096 randomised calls each, zero breaks.