Core Features
Trading fees, liquidity, earnings and contract integration references.
Use the feature pages below for contract behavior and integration requirements. Each topic has one primary reference; the Quickstart covers the first swap and Contract Address provides deployment identities.
Trading and fees
Fee categories, pips, direction, keeper resolution and caps.
Sessions, opening and closing curves, holidays and exact calendar rules.
Optional same-block surcharge, reference prices and simulation state.
Liquidity and earnings
Range shares, deposits, withdrawals, amount bounds and pause behavior.
Net earnings, protocol share, fee caps, claims and delegated permissions.
Integration reference
Hook interfaces, block-pinned reads, discovery, Quoter calls and rounding.
Acceptance scenarios and executable fee examples.
Adaptive Pools use standard V4 swap math and settlement. The Hook selects the LP fee; the pool still calculates token deltas through the normal price and tick traversal.
Both documented Hook variants enable only beforeInitialize and beforeSwap, permission bits 0x2080. There are no custom before-swap deltas and no after-swap callback. beforeSwap returns executionFee | 0x400000 as the LP fee override, with zero custom delta. Strip the override flag before using the rate in swap math.
Last updated
Was this helpful?