Skip to content
LogoLogo

Contract reference

These pages are generated by forge doc from the NatSpec comments in src/ on every docs build, so they always match the code on main. Each page links to its source file.

ContractRole
AsyncSwapThe Uniswap v4 hook: turns swaps into orders, escrows input and bids, entry point for matching, fills and cancels.
RouterEntry point for makers, fillers and relayers: swap, fillOrder, cancelOrder, cancelAndWithdraw, withdrawClaims, signed variants, matchBook, fillFromPoolLiquidity, and multicall to batch them.
AsyncMatchingLinked library that matches the book, fills from pool liquidity and settles each pair.
AsyncFillerOrder storage and the per-pool book: placement, fills, cancels, repricing, bid settlement.
FeeVaultHolds protocol fee and bid claims; the owner collects them.
TokenClaimsRedeems ERC-20 PoolManager claims, such as match proceeds, to any recipient.
NativeClaimsRedeems native ETH claims to any recipient.
RadixPriceTree and EligiblePriceThe price index and the exact-price summaries that find the best crossing order.

MatchingEngine is a standalone benchmark harness and is not deployed.