Likely custom pricing hook on Polygon

Uniswap v4 Hook Contract 0x33f02e98f6562aab8375cde687eaf7a30b5feacc on Polygon · Custom pricing

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

What it does

A pausable Uniswap v4 hook with return-delta permissions covering pool initialization, liquidity and swap callbacks; its exact purpose cannot be fully determined without verified source.

How it works step by step

  • Runs logic before pool initialization and before and after liquidity add and remove operations
  • Runs logic before and after swaps and can return before-swap and after-swap deltas
  • Can be paused and resumed by a privileged role, which blocks swaps while paused
  • Tracks per-pool state in several storage mappings keyed by pool id
  • Integrates with a registry, binder, tax router and position manager set in storage
Swap behaviour
beforeSwap and afterSwap run on every swap, check a paused flag, and can return deltas that adjust swap accounting.
Liquidity behaviour
beforeAddLiquidity and beforeRemoveLiquidity are implemented; afterAddLiquidity and afterRemoveLiquidity are also dispatched, and beforeAddLiquidity writes to pool-indexed storage, but the exact effect cannot be confirmed without source.
Fee behaviour
Fee handling is not clearly determined from decoded selectors; a LP_FEE_PIPS getter and a beforeSwap path that writes per-pool mappings exist, but the exact fee mechanism cannot be confirmed without source.
Owner & admin controls
Not stated.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeAddLiquidity, beforeRemoveLiquidity, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize, beforeAddLiquidity, beforeRemoveLiquidity, beforeSwap, afterSwap, beforeSwapReturnDelta and afterSwapReturnDelta are enabled, so the hook can run logic around pool initialization, liquidity changes and swaps and can return deltas that alter swap accounting.

Security & trust assessment

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

Who controls it: A privileged role (owner, governance, guardian) appears to exist and the contract exposes pause() and resume() gated by a pausing state, so a privileged key can halt swaps. Role holders could not be fully identified without source.

Risk to user funds: The hook has return-delta permissions and can influence swap settlement, and pause functions can block swaps, so user funds could be delayed or affected. Exact fund-moving paths cannot be confirmed without source.

Security findings

  • [medium] Pausable swap path: The hook exposes pause() and resume() and a paused() getter, and beforeSwap and afterSwap read the paused flag, so a privileged key can block swaps.
  • [medium] Return-delta hook can alter swap settlement: beforeSwapReturnDelta and afterSwapReturnDelta are enabled, so the hook can alter the amounts settled on swaps, which means it can take or redirect tokens.
  • [info] Privileged configuration surface: Storage shows a registry, binder, taxRouter and governance/guardian roles, and bindFactory is callable, indicating an administrative layer whose changes could affect pool behaviour.
  • [info] Unverified source: The contract is unverified, so function behaviour is inferred from selectors and storage only and may be incomplete.

Contract details

Verified source
No
Bytecode size
21,081 bytes
Upgradeable proxy
No
Detected patterns
pausable, return-delta

Pools using Likely custom pricing hook