Likely custom pricing hook on Ethereum

Uniswap v4 Hook Contract 0x02a319b054b4307f1d2f08fb49daa5bceb314088 on Ethereum · Custom pricing

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

An unverified, non-upgradeable hook that runs before every swap and can adjust swap amounts or take tokens by an unconfirmed amount, while leaving LP deposits and withdrawals untouched.

How it works step by step

  • Runs custom logic before every swap in pools that use it.
  • Can change swap amounts through a before-swap return delta and pull tokens out of the PoolManager with take().
  • Keeps a few internal counters (including a 32-bit value, likely a timestamp or block number) that update on every swap.
  • Exposes one read-only function that reports these stored values.
  • Has no liquidity callbacks, so LPs add and withdraw normally.
Swap behaviour
Before each swap the hook updates its stored counters. It can return a delta that changes how much the trader pays or receives, and it can take tokens from the PoolManager. The exact amount or formula cannot be confirmed from bytecode alone.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Any extra charge would come through the before-swap delta and take() call, but the exact percentage is unknown from bytecode. The pool's LP fee otherwise applies as configured.
Owner & admin controls
No owner or admin functions were found in the bytecode; the only external functions are the swap callback and one read-only view.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs logic and updates counters before each swap; beforeSwapReturnDelta: lets the hook adjust swap amounts and take tokens during the swap.

Security & trust assessment

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

Who controls it: No privileged keys or admin functions are visible, and the contract is not upgradeable. Its behaviour is fixed by its deployed code.

Risk to user funds: The hook can affect swap input or output amounts by an unknown amount through its before-swap delta. LP principal cannot be locked or taxed, because withdrawal callbacks are disabled.

Security findings

  • [medium] Unverified swap delta logic: The hook can change swap amounts and take tokens through a before-swap delta, but without source code the size of any deduction cannot be confirmed.
  • [info] No admin functions detected: No owner-gated setters appear in the bytecode, and the hook is a direct contract, not a proxy.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.

Contract details

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

Pools using Likely custom pricing hook