SazareHybridHook on Robinhood Chain
Uniswap v4 Hook Contract 0xeafa6ed9f61d11c82a84dc13e78a131b69a7e088 on Robinhood Chain · Liquidity management · Verified contract
- Volume (24h)
- $799
- Value locked (TVL)
- $5.25K
- All-time volume
- $759.30K
- Pools using this hook
- 1
- Swaps (24h)
- 38 (35 traders)
- Total swaps
- 18,109
What it does
A Uniswap v4 hook that splits exact-input swaps on a hybrid pool between native v4 liquidity and the canonical Sazare pool, so traders get the better of the two prices.
How it works step by step
- Initializes the hybrid pool once, only at the initial price matching the canonical pool, and only for the authorized initializer.
- On each exact-input swap, computes how much of the input should route to native v4 liquidity versus the canonical Sazare pool.
- Executes the canonical leg by calling poolManager.swap on the canonical pool and validates the returned delta.
- Returns a before-swap delta so the trade settles across both legs, with no protocol fee taken by the hook.
- Rejects exact-output swaps, liquidity additions and removals, and donations with UnusedHook or ExactOutputUnsupported reverts.
- Swap behaviour
- beforeSwap accepts only exact-input swaps, computes a native/canonical allocation with an on-chain optimizer, sends the canonical share through the canonical Sazare pool, and returns a delta that settles the trade; the remainder fills against native liquidity.
- Liquidity behaviour
- No liquidity callbacks; beforeAddLiquidity and beforeRemoveLiquidity revert with UnusedHook, so LPs cannot add or remove liquidity through the hook and the pool's liquidity is native v4 liquidity only.
- Fee behaviour
- Swap fee on the hybrid pool is the immutable hybridFee (capped at 100000 ppm, i.e. 10%) set at deployment; the hook itself takes no protocol fee from the native leg, and the canonical leg's fees are handled inside the canonical Sazare hook.
- Owner & admin controls
- No pause or upgrade path is visible in the hybrid hook. authorizedInitializer is immutable and gates beforeInitialize, so only that address can initialize the hybrid pool once. The hook has no owner setters for fees or parameters; hybridFee and the canonical hook are fixed at construction.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeSwap, beforeSwapReturnDelta
beforeInitialize restricts and records the one-time initialization at the immutable initial price. beforeSwap routes exact-input swaps, pulling a portion into the canonical Sazare pool via poolManager.swap and returning a before-swap delta. beforeSwapReturnDelta lets the hook settle the canonical leg against the swap, so it can take the specified amount.
Security & trust assessment
Risk level: low (verified source, high confidence).
Who controls it: The only privileged role is the immutable authorizedInitializer, which can perform the single initialization. It cannot change fees, pause swaps or upgrade the hook.
Risk to user funds: During swaps the hook temporarily holds and moves swap tokens through the canonical pool, but it has no owner withdrawal or sweep function and holds no LP position for users. Users' funds are exposed to the correctness of the routing math and the canonical hook, not to a privileged key.
Security findings
- [medium] Hook takes custody of swap flow via return delta: beforeSwap calls poolManager.swap on the canonical pool and returns a delta that moves the hook's own balances, so the hook custodies swap inputs and outputs transiently during each trade.
- [low] Routing depends on canonical pool state: Routing uses on-chain custody balances and the canonical hook's quote functions to split flow; a manipulated or stale canonical pool state would change the native/canonical split for a given swap.
- [info] Canonical leg output is validated: Output is validated against the canonical pool's delta, and an invalid delta reverts, limiting the damage from a misbehaving canonical leg.
- [info] Exact-output swaps are not supported: Only exact-input swaps are supported; exact-output reverts with ExactOutputUnsupported.
Contract details
- Verified source
- Yes (SazareHybridHook)
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Bytecode size
- 21,127 bytes
- Upgradeable proxy
- No
- Detected patterns
- return-delta
Pools using SazareHybridHook
- WETH / SZR (0.30% fee) — 24h volume $799, TVL $5.25K, 38 swaps today