Likely custom pricing hook on Ethereum

Uniswap v4 Hook Contract 0x2aeef0ba97f242de039c6ffdd6024207e405c0cc on Ethereum · Custom pricing

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

What it does

A Uniswap v4 hook that intercepts swaps before and after execution, takes or settles currency and can adjust swap deltas, with an apparent token burn function, though its exact logic cannot be confirmed without verified source.

How it works step by step

  • Runs custom logic in beforeSwap on every swap and can return a delta that changes swap amounts
  • Runs custom logic in afterSwap and can return a delta that settles currency after the swap
  • Takes tokens from the PoolManager using the take call during swap processing
  • Exposes a burnToken function and BURN selector, suggesting token burning
  • Restricts privileged calls to the PoolManager via an OnlyPoolManager guard
Swap behaviour
beforeSwap and afterSwap are both invoked on swaps; the hook uses return deltas and takes currency via the PoolManager, which can alter the amounts exchanged.
Liquidity behaviour
No liquidity callbacks.
Fee behaviour
Fee behaviour cannot be determined from the decoded bytecode; the hook takes or settles currency in beforeSwap and afterSwap rather than setting a fee.
Owner & admin controls
No admin controls found.

Enabled Uniswap v4 callbacks

beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeSwap: runs before each swap and can return a delta that alters the swap amounts. afterSwap: runs after each swap and can return a delta that moves currency. beforeSwapReturnDelta: lets beforeSwap return a delta the pool applies to the swap. afterSwapReturnDelta: lets afterSwap return a delta the pool applies after the swap.

Security & trust assessment

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

Who controls it: No owner or admin functions were identified in the dispatched selectors, so privileged-key risk is not evident from the bytecode alone.

Risk to user funds: Because the hook uses return deltas and takes currency via the PoolManager on swaps, it can affect the amounts traders receive or pay and may hold or move tokens during swaps. Exact conditions cannot be determined without source.

Security findings

  • [medium] Hook moves currency and alters swap deltas: The hook takes or settles currency through the PoolManager (take selector present) and has return-delta permissions, so it can alter swap amounts and custody tokens during swaps.
  • [medium] Token burn logic with unverified conditions: A burnToken and BURN selector are exposed alongside a poolManager getter, suggesting token burning logic whose trigger conditions cannot be verified without source.
  • [info] Unverified source: Source is not verified and no storage layout was inferred, so the exact behaviour and any hidden parameters cannot be confirmed.

Contract details

Verified source
No
Bytecode size
2,330 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, return-delta

Pools using Likely custom pricing hook