Aggregator hook on Ethereum
Uniswap v4 Hook Contract 0xc20c5cf9862abf99e141fa420ef53e6cc3fc2088 on Ethereum · Aggregator
- Volume (24h)
- $0
- Value locked (TVL)
- $46.95M
- All-time volume
- $0
- Pools using this hook
- 1
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 6
What it does
This hook routes every swap atomically to an external pool at that venue's price, with no visible extra hook fee. A shutdown switch can halt trading, but LPs can always withdraw freely.
How it works step by step
- Routes swaps through an external pool or venue stored in the hook, instead of using normal Uniswap v4 liquidity.
- Uses its before-swap return delta to settle each trade atomically against that external source.
- Records token info per pool when the pool is created and offers a quote function plus a rough total-value-locked view.
- Has a shutdown flag, set through a self-destruct style function, that is checked during swaps and can stop routing.
- Swap behaviour
- On each swap the hook takes over pricing and settles the trade against an external pool via the swap return delta, so trades fill at that venue's rate. If the shutdown flag is set, swaps through the hook likely revert or stop routing.
- Liquidity behaviour
- No liquidity callbacks are enabled, so LPs can add and withdraw freely. Liquidity actually used for trades sits in the external venue, not in this v4 pool.
- Fee behaviour
- No explicit hook fee is visible in the bytecode. Traders pay whatever pricing and fees the external venue applies; exact amounts cannot be confirmed without source.
- Owner & admin controls
- A selfDestruct function sets a shutdown flag that halts swap routing. Who can call it, and any other limits, cannot be verified from bytecode. No fee-setting or upgrade functions were found.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeSwap, beforeSwapReturnDelta
beforeInitialize: registers the pool's token info and links it to the external pool; beforeSwap: computes and executes the routed trade; beforeSwapReturnDelta: replaces the v4 swap amounts with the externally settled amounts.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, medium confidence).
Who controls it: A privileged caller, likely the deployer, appears able to trigger shutdown, which stops swaps through the hook. No ability to change fees or drain funds was identified.
Risk to user funds: The hook only touches the tokens in each trade as it routes them to the external pool. No extra fee is visible, though this is unconfirmed without source. LP principal cannot be locked by the hook.
Security findings
- [medium] Unverified swap return-delta logic: The hook rewrites swap amounts through its return delta to settle against an external pool. Without source, the exact pricing and any hidden deduction cannot be verified.
- [low] Shutdown switch: A selfDestruct function sets a stored shutdown flag that swaps check, so routing can be halted. LP withdrawals are not affected.
- [info] Not upgradeable, no withdrawal hooks: The contract is not a proxy, and remove-liquidity callbacks are disabled, so LP withdrawals cannot be blocked.
Contract details
- Verified source
- No
- Bytecode size
- 8,901 bytes
- Upgradeable proxy
- No
- Detected patterns
- aggregator, return-delta
Pools using Aggregator hook
- RLUSD / USDC (0.00% fee) — 24h volume $0, TVL $46.95M, 0 swaps today