Dynamic fee hook on Robinhood Chain

Uniswap v4 Hook Contract 0x7ba0e293f62a11fedeb30d23649c2afaa22dc088 on Robinhood Chain · Dynamic fee

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

What it does

A Uniswap v4 hook that runs before each swap and can adjust the swap's token deltas, likely to apply a custom fee or accounting rule, though its exact behaviour is unverified.

How it works step by step

  • Executes custom logic in beforeSwap on every swap
  • Reads packed state from storage slots 0 and 1 to decide swap behaviour
  • Returns a before-swap delta that can change the amounts exchanged
  • Exposes a view function (0xc91c1310) that reads stored state
Swap behaviour
Runs beforeSwap logic on every swap and can return a delta that changes the amounts settled with the pool.
Liquidity behaviour
No liquidity callbacks.
Fee behaviour
Hook reads packed storage slots 0 and 1 (uint128/uint64 fields) and may compute a swap-specific fee or delta; exact fee formula cannot be determined from decoded bytecode alone.
Owner & admin controls
No admin controls found.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs before each swap and is able to read and update packed state in storage slots 0 and 1. beforeSwapReturnDelta: lets the hook return a delta that adjusts the swap amounts, so it can take or give tokens during a swap.

Security & trust assessment

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

Who controls it: No owner or admin selectors were decoded, so no privileged key is evident; any admin role would have to be inferred from storage and cannot be confirmed.

Risk to user funds: The hook can change swap deltas and therefore the amounts traders receive or pay, which may affect pool and user funds; the precise effect cannot be confirmed without source.

Security findings

  • [medium] Return-delta hook can alter swap settlement: beforeSwapReturnDelta is enabled, so the hook can alter swap amounts and move value to or from the pool on each swap.
  • [info] Limited decoding, no verified source: Only beforeSwap (0x575e24b4) and a view selector (0xc91c1310) were decoded; no source is available, so the exact delta logic and any gating cannot be verified.

Contract details

Verified source
No
Bytecode size
1,911 bytes
Upgradeable proxy
No
Detected patterns
return-delta

Pools using Dynamic fee hook