ANVIL / CALIBRATION REV 1.0
UNISWAP V4 / ETHEREUM / CUSTOM CURVE · NOOP HOOK / FLOAT / OPEN FDV
STATUS PRE-LAUNCH · UNAUDITED
CLASS / INVENTORY-AWARE MARKET MAKER
LIQUIDITY / NONE — THE HOOK IS THE BOOK
SETTLEMENT / ERC-6909 CLAIMS
INVARIANTS / 5 · 4096 CALLS · 0 BREAKS

ANVIL

Every other v4 hook redistributes a fee. This one replaces the curve.

The pool holds no liquidity. Every swap is intercepted in beforeSwap and quoted by the hook out of its own reserves, so the hook is the counterparty on both sides and keeps the entire spread — instead of leaking it to LPs and arbitrageurs.

ASKLINEAR BONDING CURVE, INTEGRATED EXACTLY · 20× RANGE
BIDRESERVE ETH ÷ CIRCULATING — THE REDEMPTION FLOOR
FLOORMONOTONE. CHECKED ON EVERY SWAP, REVERTS OTHERWISE
MEVSANDWICH PAYS THE SPREAD TWICE — UNPROFITABLE, NOT BLOCKED
LVRNO LPs EXIST, SO THERE IS NOTHING TO ARBITRAGE
TOPFULL SELLOUT FDV
ORDER TAPE
SIMULATED · SAME MATHS AS CHAIN
BLOCK
FLOOR
    01 THESIS / WHAT THE META ACTUALLY BUILT SURVEY · AUG 2026

    Eleven hooks.
    One idea.

    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.

    Project What the hook does Where the value goes Curve
    Titanum · $TiMarks the pool rebase-excluded so reserves stay fixed3/3 tax → buyback & burnTaxed
    Loom · $LOOMToken is the hook; tracks hold time per wallet3% ETH tax → holders × hold-time multiplierTaxed
    Stack · $STACKRoutes swap fees into a basket of tokenised equitiesFees → claimable stock dividendsTaxed
    Crypt · $CRYPTAsymmetric burn on ingress and egress1% in / 5% out → supply decayTaxed
    BRAH1% hook fee feeding an irreversible deposit wallDaily print + swap fees → depositorsTaxed
    PrismOne pool, NFT facets share the LP positionLP rewards → facet holdersUntouched
    Nota · UnistreetsLaunchpads pairing tokens against tokenised equitiesFees → creators or holdersUntouched
    ProgrammableReviewed custom-hook launches with an onchain stampInfrastructure, not a mechanismUntouched
    ANVILQuotes every swap from its own reservesSpread → a floor that can only riseReplaced
    [ 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.

    02 MECHANISM / SCROLL TO RUN THE MARKET CLIENT-SIDE MODEL · BIGINT
    FIG. 1 — ASK CURVE AGAINST REDEMPTION FLOOR ASK / CURVE BID / FLOOR SCROLL ↓
    RESERVE
    VOLUME
    FLOOR / GWEI
    FLOOR ÷ ASK
    [ 01 / THE CURVE ]

    Price discovery

    Buyers walk up the bonding curve. The marginal price climbs toward 20× as the float is placed. Nothing exotic yet.

    [ 02 / THE FLOOR ]

    Backing accumulates

    Every wei paid in stays in. The floor is what it buys back at. Early it is thin — it is still being built by the people buying.

    [ 03 / THE RATCHET ]

    Volume, not price

    The float is placed; trading is two-sided. Buys pay the spread, sells pay the exit fee, both stay in. The floor rises on volume alone.

    [ 04 / THE HANDOVER ]

    The floor becomes the price

    The floor plus the minimum spread clears the curve. The floor is the ask now — fully backed, and only ratcheting.

    03 TERMINAL / PRICE YOUR OWN ENTRY HONEST DOWNSIDE, NOT A PROJECTION

    What you'd get,
    and what you'd
    lose leaving now.

    YOU RECEIVE
    AVERAGE PRICE PAID
    SHARE OF SUPPLY
    FLOOR BEFORE YOUR BUY
    FLOOR AFTER YOUR BUY
    REDEEM IMMEDIATELY
    04 TELEMETRY / LIVE CONTRACT STATE
    FEED   CONNECTING
    FLOOR / GWEI
    ASK / GWEI
    CURVE / GWEI
    BACKING
    RESERVE
    MARKET CAP
    BUY SPREAD
    EXIT FEE
    INVENTORY
    CIRCULATING
    TRADE ON UNISWAP  >>> READ THE SPEC
    05 SPECIFICATION SOLIDITY 0.8.26 · EVM CANCUN

    Parameters,
    and what caps them.

    ParameterDefaultHard capEffect
    curveMultiplier20×1000×Marginal price at full sellout, relative to p₀
    baseSpreadBps3.00%10.00%Minimum spread once the floor is the binding ask
    blockPremiumBps1.00%20.00%Surcharge on the first swap of a block — the arbitrageur's swap
    velocityCoefBps20.00%20.00%Intra-block pressure: coef × blockVolume ÷ reserve
    exitFeeBps1.00%5.00%Retained on sells — this is what ratchets the floor
    protocolFeeBps10.00%50.00%Share of the collected fee, never of the trade
    genesisBurnBps0.01%10.00%Burned at seed so circulating supply is never zero
    [ FLAGS ]4 BITS

    Mined into the address

    BEFORE_INITIALIZE
    BEFORE_ADD_LIQUIDITY
    BEFORE_SWAP
    BEFORE_SWAP_RETURNS_DELTA

    CREATE2-mined so the low 14 bits carry exactly these permissions and nothing else.

    [ SETTLEMENT ]ERC-6909

    Claims, not transfers

    Reserves and inventory sit as claim tokens inside the PoolManager. Swaps settle as pure accounting — mint and burn. This is required, not an optimisation: the swapper only settles after beforeSwap returns, so a hook that tries to take real ETH mid-callback reverts.

    [ CUSTODY ]SURFACE

    What the owner can do

    Redirect the protocol-fee stream, and renounce. That is the entire surface. Pricing is immutable from construction.

    Reserves are not withdrawable by anyone — only redeemable through the floor.

    06 RISK / READ BEFORE YOU TOUCH IT NO WARRANTY
    Is this audited?

    No. Custom-curve hooks that return a BeforeSwapDelta are the least battle-tested part of Uniswap v4, and this contract holds the entire ETH reserve. The suite covers unit, fuzz and stateful-invariant paths and every invariant holds over thousands of randomised calls — but a test suite is not an audit. Do not put money into an unaudited version of this.

    Can the floor actually go down?

    Not through trading. Buys execute above F, sells retain the exit fee, and the contract re-derives F after every swap and reverts if it fell. What the floor cannot protect against is paying far above it — it is a redemption price, not a purchase price.

    So what is the real downside?

    You buy at the ask and can only ever redeem at the floor. Early, that gap is wide, because the floor is still being built. The terminal above prints exactly what you would lose exiting immediately, and how much two-sided volume it takes for the floor to reach your entry. The mechanism removes the "liquidity vanished" failure mode. It does not remove price risk.

    Will scanners and terminals price it correctly?

    Open question, and the single biggest practical launch risk. The pool reports no conventional liquidity because all quoting happens inside the hook. Some indexers may render liquidity as zero or misprice market cap. This gets verified on a testnet deployment before anything touches mainnet.

    Why can't I provide liquidity?

    Because there is nothing to provide it to. The hook is the entire book. Adding liquidity would recreate exactly the passive inventory arbitrageurs exist to extract from, which is the problem this design removes. beforeAddLiquidity reverts unconditionally.

    What happens if everyone sells?

    They all get paid, in order, at a floor that rises as they leave — the last seller gets a better price per token than the first. When the float is fully redeemed, only the permanently burned genesis slice remains circulating, and the residual reserve backs it.

    [ NOT FINANCIAL ADVICE ]
    THIS IS A MECHANISM DESCRIPTION, NOT AN OFFER, A SOLICITATION, OR A RETURN FORECAST. THE ARITHMETIC CLAIMS ON THIS PAGE ARE CLAIMS ABOUT A RATIO INSIDE A CONTRACT — NOT ABOUT WHAT ANY TOKEN WILL BE WORTH. EVERY FIGURE SHOWN BEFORE DEPLOYMENT IS A MODEL, LABELLED AS ONE.