Dynamic fee hook on BNB Chain

Uniswap v4 Hook Contract 0x37a9fe034593878061b54a85fea2ada82c020088 on BNB 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

This hook runs custom logic before every swap and can adjust swap amounts through a return delta, but without source its effect on which trades pay more or less cannot be confirmed.

How it works step by step

  • Implements only a beforeSwap callback that runs on every swap in the pool
  • Reads and writes several storage slots (slots 0 through 3) on each swap, suggesting per-pool state or counters
  • Has beforeSwapReturnDelta enabled, so it can return a delta that alters the amounts settled for the swap
  • Only one function selector is dispatched, so there is no separate external interface for liquidity or admin actions
Swap behaviour
beforeSwap runs on every swap, reads and writes internal storage and can return a before-swap delta that changes the swap settlement; the exact direction and size of any adjustment cannot be determined from the decoded bytecode alone.
Liquidity behaviour
No liquidity callbacks.
Fee behaviour
Fee behaviour cannot be determined from the decoded bytecode; the hook may influence the effective fee through its before-swap return delta, but the mechanism is not identifiable without source.
Owner & admin controls
No admin controls found.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap is used to run custom logic before each swap, and beforeSwapReturnDelta lets the hook return a delta that modifies the swap amounts.

Security & trust assessment

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

Who controls it: No owner, admin or upgrade selectors were observed in the dispatch table, so no privileged key is evident from the bytecode; the stored state could still be configured by a mechanism not visible in the decoded selectors.

Risk to user funds: The hook can alter swap settlement through its before-swap return delta, so it can affect the amounts traders receive or pay, but it does not appear to hold custody of funds itself.

Security findings

  • [medium] Before-swap return delta: The hook has beforeSwapReturnDelta permission, so it can alter the amounts a swap settles, which could move value between the swapper and the pool depending on its logic.
  • [info] No source available: Without verified source, the exact logic of the state updates and the delta calculation cannot be audited, so the behaviour is inferred from bytecode only.
  • [low] Mutable state on every swap: The beforeSwap selector both reads and writes storage slots 0 through 3, so swap execution changes persistent hook state each time.

Contract details

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

Pools using Dynamic fee hook