# Swapping and quoting

## Introduction

A Hookr pool on Hookr's shared hook is an ordinary Uniswap v4 pool whose `PoolKey.hooks` is `HookrRoot`. Any v4 caller can trade it. There are two ways in, the Universal Router and Hookr's own `HookrRouter`, and `HookrQuoter` quotes either one. Their addresses, and every other address, render below from the release book the app ships; none is typed into this page.

### Hookr's core and own-hook contracts

| Contract | Address |
| --- | --- |
| HookrRoot, the hook every Hookr pool names | [`0x89c9FB50d1f03192230FFB1c279BB6E7d3Fe6aCc`](https://robin.etherscan.io/address/0x89c9FB50d1f03192230FFB1c279BB6E7d3Fe6aCc#code) |
| HookrLane, the arbitrage recapture lane on HookrRoot | [`0x9A8a1006469BA196f8FEfc017a53505C83A060BB`](https://robin.etherscan.io/address/0x9A8a1006469BA196f8FEfc017a53505C83A060BB#code) |
| HookrRules, the core | [`0x342bAA22e202954593b04B7eD1663621E0565d46`](https://robin.etherscan.io/address/0x342baa22e202954593b04b7ed1663621e0565d46#code) |
| HookrViewSwap, part of the core | [`0x844faE4347517180bf4656b67E4BFc27D194693F`](https://robin.etherscan.io/address/0x844fae4347517180bf4656b67e4bfc27d194693f#code) |
| HookrClaims, part of the core | [`0x8D0583b408e2959FA0450c54F749C1A4Dad3d335`](https://robin.etherscan.io/address/0x8d0583b408e2959fa0450c54f749c1a4dad3d335#code) |
| HookrRecapture, part of the core | [`0x97D440593912234b78432A030fb5186BD2A3Bc86`](https://robin.etherscan.io/address/0x97d440593912234b78432a030fb5186bd2a3bc86#code) |
| HookrLimitBlocks, part of the core | [`0xc42E47679dd06DDcC07acc72ca710f6E60ACC3A9`](https://robin.etherscan.io/address/0xc42e47679dd06ddcc07acc72ca710f6e60acc3a9#code) |
| HookrCoreBlocks, part of the core | [`0xdA360B744F8C816acbb97fF65cC4Cd81e27Df375`](https://robin.etherscan.io/address/0xda360b744f8c816acbb97ff65cc4cd81e27df375#code) |
| HookrBinder, part of the core | [`0x0B0f08c381ed6902FAb74b470fe7f8A58E8EA269`](https://robin.etherscan.io/address/0x0b0f08c381ed6902fab74b470fe7f8a58e8ea269#code) |
| HookrCoreSettle, the library HookrCoreBlocks links | [`0x7E169f0c49Db67F1a4f6f3c48A69B2e244b85191`](https://robin.etherscan.io/address/0x7e169f0c49db67f1a4f6f3c48a69b2e244b85191#code) |
| HookrLauncher, for new tokens | [`0x70a66ADF39B5c9FfEE4A9F081C182edfbb7DBD0C`](https://robin.etherscan.io/address/0x70a66adf39b5c9ffee4a9f081c182edfbb7dbd0c#code) |
| HookrFamilyRouter, for new tokens | [`0xbc56F48f873841d26a5a02575263d82f68e12864`](https://robin.etherscan.io/address/0xbc56f48f873841d26a5a02575263d82f68e12864#code) |
| HookrFamilyLock, for new tokens | [`0x5248AF9139DaDEf0C5296342b7BE441deDf0adC2`](https://robin.etherscan.io/address/0x5248af9139dadef0c5296342b7be441dedf0adc2#code) |
| HookrTokenDeployer, for new tokens | [`0xE703F2Cd21A8dEE05dbC81b693201D602772B2d8`](https://robin.etherscan.io/address/0xe703f2cd21a8dee05dbc81b693201d602772b2d8#code) |
| HookrVestingMilestoneFactory, for new tokens | [`0xCBe4Fa6Ca5f14Ed30435524dc9629DC1719DbCB0`](https://robin.etherscan.io/address/0xcbe4fa6ca5f14ed30435524dc9629dc1719dbcb0#code) |
| PayLaterFactory, for new tokens | [`0xFc3e9e435C79e1712CF949C6ea921fA165cadEf3`](https://robin.etherscan.io/address/0xfc3e9e435c79e1712cf949c6ea921fa165cadef3#code) |
| Swap Cut key | [`0x9394881A6Fe570adEC4480471B4D52652d263878`](https://robin.etherscan.io/address/0x9394881a6fe570adec4480471b4d52652d263878) |
| Exit Clock key | [`0x2b6aB976d05Dcc7Cad53bF9324Fe892511036348`](https://robin.etherscan.io/address/0x2b6ab976d05dcc7cad53bf9324fe892511036348) |
| Holder Pot key | [`0x740b2Da80eBB44613C2b44f380D55ECBECbFf11f`](https://robin.etherscan.io/address/0x740b2da80ebb44613c2b44f380d55ecbecbff11f) |
| Storm Fee key | [`0xD577087cbf9bEC0Ca0392efD8A83C3fE6A09Bd1f`](https://robin.etherscan.io/address/0xd577087cbf9bec0ca0392efd8a83c3fe6a09bd1f) |
| Wallet Cap key | [`0xfe5c29D2d6B7aC383A63291a771197e4D83E1d9c`](https://robin.etherscan.io/address/0xfe5c29d2d6b7ac383a63291a771197e4d83e1d9c) |
| Buy/Sell Block's pause and lock key | [`0xa64be3B5eC9B7310CBd3F77736ca5D6Fa81C5BCb`](https://robin.etherscan.io/address/0xa64be3b5ec9b7310cbd3f77736ca5d6fa81c5bcb) |
| Sandwich Guard key | [`0xa214e747d1a8E767F88ed2170be62E22ED79a269`](https://robin.etherscan.io/address/0xa214e747d1a8e767f88ed2170be62e22ed79a269) |
| King of the Pool key | [`0xD691021b7cbee6bFB1ACF73A3E1126603D1B26F9`](https://robin.etherscan.io/address/0xd691021b7cbee6bfb1acf73a3e1126603d1b26f9) |
| HookrRules, combined: the core a hook of your own copies | [`0x8AD0aC66DbeBcc047e8d216666C925E797e5e52e`](https://robin.etherscan.io/address/0x8ad0ac66dbebcc047e8d216666c925e797e5e52e#code) |
| HookrRecapture, the combined core's arbitrage recapture split | [`0x1172a3cC44ce8E8E3F1f0e58a9A0E9678b7118f8`](https://robin.etherscan.io/address/0x1172a3cc44ce8e8e3f1f0e58a9a0e9678b7118f8#code) |
| HookrOwnedRootFactoryV2, deploys a hook of your own with its own lane | [`0x4888f030F9D789Bf71F45B275dA7A7812036dE7e`](https://robin.etherscan.io/address/0x4888f030F9D789Bf71F45B275dA7A7812036dE7e#code) |
| HookrLane, the lane of a hook HookrOwnedRootFactoryV2 deploys | [`0xa83007AB66cF977132c58F5a138E1e92A005Fff3`](https://robinhoodchain.blockscout.com/address/0xa83007AB66cF977132c58F5a138E1e92A005Fff3?tab=contract) |
| HookrRamsesV3Fill, venue adapter admitted under the combined core | [`0x446e409484dE756662f2C238c9bDECB9f50f5B8F`](https://robin.etherscan.io/address/0x446e409484dE756662f2C238c9bDECB9f50f5B8F#code) |
| HookrPonsCurveFill, venue adapter admitted under the combined core | [`0xEa0A512dFA4D8CcaFA31E485bd189703D8BaAa27`](https://robin.etherscan.io/address/0xEa0A512dFA4D8CcaFA31E485bd189703D8BaAa27#code) |
| HookrLpBoost, LP Time-Lock Boost for gauges opened on it | [`0xa301A960716a070394826092e6fF113A156A80D1`](https://robin.etherscan.io/address/0xa301A960716a070394826092e6fF113A156A80D1#code) |
| HookrCodeStoreRoot, code HookrOwnedRootFactoryV2 deploys from | [`0xB41EB84679855602522ecd0093ff6343EB3ceEc4`](https://robin.etherscan.io/address/0xB41EB84679855602522ecd0093ff6343EB3ceEc4#code) |
| HookrCodeStoreCore0, code HookrOwnedRootFactoryV2 deploys from | [`0xd71167314A50589C7C8CD9Cc9C81939f5DDDb190`](https://robin.etherscan.io/address/0xd71167314A50589C7C8CD9Cc9C81939f5DDDb190#code) |
| HookrCodeStoreCore1, code HookrOwnedRootFactoryV2 deploys from | [`0xe4731fFC8a0A0C10213C872F5c17b3f895A82a83`](https://robin.etherscan.io/address/0xe4731fFC8a0A0C10213C872F5c17b3f895A82a83#code) |

### Hookr's contracts

| Contract | Address |
| --- | --- |
| HookrRoot | [`0x89c9FB50d1f03192230FFB1c279BB6E7d3Fe6aCc`](https://robin.etherscan.io/address/0x89c9FB50d1f03192230FFB1c279BB6E7d3Fe6aCc#code) |
| HookrRules, the release's | [`0x4a71c270b1520F94064268102AebD744b0DE7942`](https://robin.etherscan.io/address/0x4a71c270b1520F94064268102AebD744b0DE7942#code) |
| HookrLane | [`0x9A8a1006469BA196f8FEfc017a53505C83A060BB`](https://robin.etherscan.io/address/0x9A8a1006469BA196f8FEfc017a53505C83A060BB#code) |
| HookrRecapture, the release's | [`0xF83569E564d70daebc35950f66a73f2e2B915583`](https://robin.etherscan.io/address/0xF83569E564d70daebc35950f66a73f2e2B915583#code) |
| HookrRouter | [`0xC2Bc9a3fe6c4Ce8C2F7EB4655b0869b01D8c93C9`](https://robin.etherscan.io/address/0xC2Bc9a3fe6c4Ce8C2F7EB4655b0869b01D8c93C9#code) |
| HookrQuoter | [`0x445D7891381Aa7F91F5048EdBC6a611ccBDe7865`](https://robin.etherscan.io/address/0x445D7891381Aa7F91F5048EdBC6a611ccBDe7865#code) |
| HookrLauncher, the release's | [`0x1cf2748A6670572425eAbf9Ab9e5BC4eb2eB8Ef4`](https://robin.etherscan.io/address/0x1cf2748A6670572425eAbf9Ab9e5BC4eb2eB8Ef4#code) |
| HookrRegistry | [`0x463c82beA1a52F4Cc05ca0741a24F0AD24bA4602`](https://robin.etherscan.io/address/0x463c82beA1a52F4Cc05ca0741a24F0AD24bA4602#code) |
| HookrTreasury | [`0x2242F7FC75606500503075f29ea8cDA684EfB4a9`](https://robin.etherscan.io/address/0x2242F7FC75606500503075f29ea8cDA684EfB4a9#code) |
| HookrForwarder | [`0xe7863CC0E2Fb783b44c279aB159bcD812c2ceA1c`](https://robin.etherscan.io/address/0xe7863CC0E2Fb783b44c279aB159bcD812c2ceA1c#code) |
| HookrRegistryChecks | [`0xB9F5c54E5Cc7ac6c7a96335E5A334Cf4eA496E98`](https://robin.etherscan.io/address/0xB9F5c54E5Cc7ac6c7a96335E5A334Cf4eA496E98#code) |
| HookrRegistryAdmin | [`0x675ac2102E8c69E2467F64656E3c235AF3901Ac1`](https://robin.etherscan.io/address/0x675ac2102E8c69E2467F64656E3c235AF3901Ac1#code) |
| HookrLaunchChecks | [`0x8567369a70100828611BB6F44ec051B48F10fb59`](https://robin.etherscan.io/address/0x8567369a70100828611BB6F44ec051B48F10fb59#code) |
| HookrTokenDeployer, the release's | [`0x1B23D6d7beBcB61E39317E9F0Bc02AEB91aFCcAe`](https://robin.etherscan.io/address/0x1B23D6d7beBcB61E39317E9F0Bc02AEB91aFCcAe#code) |
| HookrReferralRegistry | [`0xefD1DfBA80c06E72F793601706c3a1c71aab3057`](https://robin.etherscan.io/address/0xefD1DfBA80c06E72F793601706c3a1c71aab3057#code) |
| HookrProgramsAdmin | [`0x40B40D65543E70a9C757eda1A2208517a8BC7292`](https://robin.etherscan.io/address/0x40B40D65543E70a9C757eda1A2208517a8BC7292#code) |
| HookrPrograms | [`0x9fA204AC99176782Fd20615b2b2A516D1F8C328F`](https://robin.etherscan.io/address/0x9fA204AC99176782Fd20615b2b2A516D1F8C328F#code) |
| HookrMilestoneNFTFactory | [`0xa340F964F1E685c681dC3ABB5B0405E608914d00`](https://robin.etherscan.io/address/0xa340F964F1E685c681dC3ABB5B0405E608914d00#code) |
| HookrProgramValidator | [`0x33e0249083Be7Cd8bD2fe175E0671AcfD0516850`](https://robin.etherscan.io/address/0x33e0249083Be7Cd8bD2fe175E0671AcfD0516850#code) |
| HookrReferralDistributor | [`0x690539c53212899A9c6AEEE3b4B6737A5c4851d9`](https://robin.etherscan.io/address/0x690539c53212899A9c6AEEE3b4B6737A5c4851d9#code) |
| HookrFamilyRouter, the release's | [`0x854f3Fa7AC342B244DF0d9A8c8F597b051aAE559`](https://robin.etherscan.io/address/0x854f3Fa7AC342B244DF0d9A8c8F597b051aAE559#code) |
| HookrFamilyLock, the release's | [`0xfAFEcE64099C1E791C4B46189c277f00c0c7e00b`](https://robin.etherscan.io/address/0xfAFEcE64099C1E791C4B46189c277f00c0c7e00b#code) |
| HookrCompliance | [`0x9D205e8a68464761A9d84bdeCcEa0C3CB1e7B1EC`](https://robin.etherscan.io/address/0x9D205e8a68464761A9d84bdeCcEa0C3CB1e7B1EC#code) |
| HookrComplianceGuard | [`0x6CD70db1ac99344416a6fD7184e23FA8f09f313A`](https://robin.etherscan.io/address/0x6CD70db1ac99344416a6fD7184e23FA8f09f313A#code) |
| HookrAccountCalls | [`0x0579a95A7760070E2d6D34e5beCe571e5F1c4818`](https://robin.etherscan.io/address/0x0579a95A7760070E2d6D34e5beCe571e5F1c4818#code) |
| HookrPaymasterAdmin | [`0x1d81F4B131832f741392edf7B91b4CF099FbB008`](https://robin.etherscan.io/address/0x1d81F4B131832f741392edf7B91b4CF099FbB008#code) |
| HookrPaymaster | [`0x1c4682915092E742231ea038C4fcA61e96a83c99`](https://robin.etherscan.io/address/0x1c4682915092E742231ea038C4fcA61e96a83c99#code) |
| HookrRootFactory | [`0x21E438FaBE10770afb4407cF6b09d32369CBdCE4`](https://robin.etherscan.io/address/0x21E438FaBE10770afb4407cF6b09d32369CBdCE4#code) |
| HookrSessionAdvisory | [`0x78Bc6b7302Dda8632e661c8d74966bdBea1c66b1`](https://robin.etherscan.io/address/0x78Bc6b7302Dda8632e661c8d74966bdBea1c66b1#code) |
| HookrFeeAdvisory | [`0x3B6b3f00684987B831fcF9EB5f0d5B806afF7306`](https://robin.etherscan.io/address/0x3B6b3f00684987B831fcF9EB5f0d5B806afF7306#code) |
| HookrLiquidityVault | [`0xA408923EF811945Ef119Bc700B1950Dab65467Fc`](https://robin.etherscan.io/address/0xA408923EF811945Ef119Bc700B1950Dab65467Fc#code) |
| HookrOwnedProfiles | [`0xb46c318B6AEA2d6274f5566da414b09fDa6CC325`](https://robin.etherscan.io/address/0xb46c318B6AEA2d6274f5566da414b09fDa6CC325#code) |
| HookrOwnedRootsLens | [`0x6Bb5c9d21dD095F788cb8373d0143429ad277366`](https://robin.etherscan.io/address/0x6Bb5c9d21dD095F788cb8373d0143429ad277366#code) |
| HookrOwnedRootFactory | [`0xA6c2a401597301dFf57A59bC8F70a9622499f3ec`](https://robin.etherscan.io/address/0xA6c2a401597301dFf57A59bC8F70a9622499f3ec#code) |

### Arbitrage recapture

| Contract | Address |
| --- | --- |
| HookrLane, the arbitrage recapture lane on HookrRoot | [`0x9A8a1006469BA196f8FEfc017a53505C83A060BB`](https://robin.etherscan.io/address/0x9A8a1006469BA196f8FEfc017a53505C83A060BB#code) |
| What The Hook's arbitrage recapture executor, 25% of each arbitrage recapture's profit | [`0x4B4c16681401454140a9dBca55e5c186BBE8D728`](https://robin.etherscan.io/address/0x4B4c16681401454140a9dBca55e5c186BBE8D728) |


## Through the Universal Router

Nothing special is required. Build a `V4_SWAP` command against the pool's `PoolKey` and send empty `hookData`.

```
Commands.V4_SWAP
  Actions.SWAP_EXACT_IN_SINGLE   (key, zeroForOne, amountIn, amountOutMinimum, hookData = "")
  Actions.SETTLE_ALL             (inputCurrency, amountIn)
  Actions.TAKE_ALL               (outputCurrency, amountOutMinimum)
```

An ERC-20 input is pulled through Permit2, so the payer approves the token to Permit2 and then approves the Universal Router as a Permit2 spender with an amount and an expiry. A plain ERC-20 approval to the Universal Router is not read, and the swap fails to settle.

Every Hook Block the pool froze at launch applies, whichever way the swap arrives.

## Through HookrRouter

`HookrRouter` carries the payer to the root, settles exact amounts and returns unused ETH. Its `swap(Swap params, address engagement, uint256[] campaigns)` takes the `Swap`, and `address(0)` and an empty array for no engagement or campaign:

```solidity
struct Swap {
    PoolKey key;
    bool zeroForOne;
    int128 amountSpecified;     // negative for exact input
    uint128 amountBound;        // minimum out for exact input, maximum in for exact output
    uint160 sqrtPriceLimitX96;
    address recipient;
    uint256 deadline;
}
```

For a native input, send `msg.value` equal to the input. For an ERC-20 input, approve the router directly: it pulls with `transferFrom` and does not read Permit2. `swapAllowance` in `hookr-sdk` returns the approval, and `buildSwap` builds the call. The builders refuse a swap without an amount bound, a price bound and a deadline within the next hour, and refuse a pool whose `hooks` is not a root the release book names: Hookr's hook, or a hook of your own added to it.

## Quoting

`HookrQuoter` answers in the shape of Uniswap's `V4Quoter`, so an aggregator that already quotes v4 pools quotes a Hookr pool the same way:

| Function | Returns |
| --- | --- |
| `quoteExactInputSingle(QuoteExactSingleParams)` | `amountOut`, `gasEstimate` |
| `quoteExactOutputSingle(QuoteExactSingleParams)` | `amountIn`, `gasEstimate` |

`gasEstimate` is the gas the simulation used, not a gas limit to send: on a pool with arbitrage recapture on, the swap also needs the lane's gas floor below.

`QuoteExactSingleParams` is `V4Quoter`'s own struct: the pool key, the direction, the exact amount and `hookData`, which must be empty. Use these for a swap routed through the Universal Router.

For a swap routed through `HookrRouter`, quote the router's own call: `quote(Swap, payer)` returns the receipt the swap will settle, and `quoteDetailed(Swap, payer)` adds the payer's arbitrage recapture claim and the simulation's gas. `buildQuote` builds that call from the same `Swap` that `buildSwap` sends.

Each quote runs the real hook callbacks and then reverts with its result, so none of them is a `view` function: call it with `eth_call`, or with a static call from another contract. A revert that is not the quote's result bubbles up unchanged, so a swap the pool would refuse reaches you as the same error the swap would throw. A quote simulates the pool's accounting; it does not prove approvals, balances or gas.

## The Lane Gas Floor

On a pool with arbitrage recapture on, a swap must carry the lane's gas floor plus its own gas: `laneGasFloor` in the SDK, or `gasFloor` from `laneOf(id)` on the root. The floor follows the lane's gas cap, so read it at send time. `eth_estimateGas` includes it. Send the estimate plus a sixth, never less than the estimate, and never a fixed limit. Since 2026-11-16 the lane's cap on Robinhood Chain is 3,000,000 and its floor 6,802,619. Unused gas is refunded.

## What a Trader Pays

A pool's fee is its base LP fee, plus every Hook Block charge it froze at launch: Hookr dynamic fees up to their ceiling, Anti-Snipe's tax during its window, Auto Burn and LP Rewards on a buy, and on a new pool Swap Cut, Exit Clock (a sell only), Storm Fee and Sandwich Guard, up to 20% of the swap together. A creator royalty comes out of LP Rewards, so a trader pays the same with or without it. Quote before every swap during a new token's Anti-Snipe window: its limits are per block and shared by every trader.

## Next Steps

Read [Providing liquidity](/docs/guides/providing-liquidity) for the LP side of the same pool, and [SDK, router and quoter](/docs/integrations/sdk) for the builders.

---

This page: https://hookr.fun/docs/guides/swapping-and-quoting. Every docs page as Markdown: https://hookr.fun/docs.md.
