Hook 0x3472…8088 on Robinhood Chain

Uniswap v4 Hook Contract 0x3472e70c1d40eeb5985d8c3142f69bff47408088 on Robinhood Chain · Other

Volume (24h)
$0
Value locked (TVL)
$0
All-time volume
$0
Pools using this hook
12
Swaps (24h)
306 (7 traders)
Total swaps
306

What it does

A Uniswap v4 hook that applies a tax to swaps on attached pools, with an owner-managed allowlist and operator roles controlling who is exempt and who can move hook funds.

How it works step by step

  • Runs a beforeSwap callback that checks whether the swapper is allowlisted
  • Uses beforeSwapReturnDelta to take a tax from swap amounts
  • Derives tax levels using a peg value stored per pool key (pegOf)
  • Caps the sell tax with a MAX_SELL_TAX_BPS constant
  • Lets the owner and operators fund or defund balances held by the hook
  • Maintains owner-controlled allowlist and operator mappings
Swap behaviour
beforeSwap runs on every swap, checks the allowlist, and uses a return delta to take a tax bounded by MAX_SELL_TAX_BPS.
Liquidity behaviour
No liquidity callbacks are enabled in the hook permissions; owner-controlled fund and defund functions can move token balances held by the hook.
Fee behaviour
Swap-time tax appears to be set against MAX_SELL_TAX_BPS and a peg value (pegOf), which suggests a sell-tax style fee taken through the beforeSwap return delta; exact formula cannot be confirmed from bytecode alone.
Owner & admin controls
Owner (storage slot 0) can transfer ownership via setOwner, manage an allowlist via setAllowlist and setAllowlistBatch, grant operator roles via setOperator, and move funds via fund and defund. Function names beyond selectors are not verified without source.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs an allowlist and tax check on each swap. beforeSwapReturnDelta: lets the hook alter the swap's token deltas, which is used to take a tax from swaps.

Security & trust assessment

Risk level: medium (decoded bytecode, low confidence).

Who controls it: The owner can change the allowlist and operator set, move hook-held funds with fund and defund, and reassign ownership. A compromised owner key could redirect value or change which addresses are exempt from the tax.

Risk to user funds: The hook can take a portion of swap amounts through its return delta and holds balances that the owner and operators can move with fund and defund, so users trading through this pool are exposed to the hook's privileged logic.

Security findings

  • [medium] Return delta takes value from swaps: beforeSwapReturnDelta lets the hook take part of the swap amounts, so the hook is inside the value flow of every swap it is attached to.
  • [medium] Privileged fund movement: defund(address,uint256,address) and fund(address,uint256) let the owner or operators move tokens the hook holds, so balances held by the hook depend on privileged keys.
  • [medium] Owner-controlled allowlist: Owner-controlled setAllowlist and setAllowlistBatch decide which addresses bypass or fall under the swap logic, so the owner can selectively exempt addresses.
  • [info] Unverified source: No verified source is available, so function behaviour and the tax formula are inferred from selectors and storage only.

Contract details

Verified source
No
Bytecode size
6,584 bytes
Upgradeable proxy
No
Detected patterns
return-delta

Pools using Hook 0x3472…8088