Likely custom pricing hook on Ethereum

Uniswap v4 Hook Contract 0xf2ee18131e379b9518a548f372cfe04dee690088 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 hook that runs before every swap and can take an unknown, configurable portion of swap amounts, while leaving LP deposits and withdrawals untouched.

How it works step by step

  • Runs custom logic before every swap and can change how much of the swap is handled by the pool.
  • Can take tokens out of the PoolManager during a swap using a before-swap return delta, likely to collect a fee or settle part of the trade itself.
  • Keeps a few stored settings (two parameters set by a configuration function) plus running counters updated on each swap.
  • Has a function that appears to let someone withdraw or record an accrued amount, plus a read-only stats function.
  • Does not touch liquidity adding or removing at all.
Swap behaviour
Before each swap the hook reads two stored parameters, updates swap counters, and may adjust the swap amounts and pull tokens from the PoolManager. The exact fee or deduction size cannot be confirmed from bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
May charge a hook-level deduction on swaps through its return delta, sized by stored parameters that a configuration function can change; the exact percentage and any cap are unknown from bytecode.
Owner & admin controls
A two-argument function writes the parameters used during swaps, and a one-argument function updates another stored value; whether these are owner-restricted and what limits apply cannot be verified from bytecode.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom checks and accounting before each trade; beforeSwapReturnDelta: lets the hook alter swap amounts and take tokens during the swap.

Security & trust assessment

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

Who controls it: Whoever can call the parameter-setting functions can change how the hook treats swaps; it is unclear from bytecode who that is or what limits apply.

Risk to user funds: Traders' swap amounts can be partly taken by the hook during swaps, with an unknown maximum. LP principal cannot be locked or taken by this hook.

Security findings

  • [medium] Swap amounts can be modified: The hook has swap return-delta enabled and calls take on the PoolManager, so it can deduct tokens from swaps; the size is set by stored parameters with no verifiable cap.
  • [low] Configurable swap parameters: A setter function changes the values read during swaps; access control and bounds are not visible without source.
  • [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.

Contract details

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

Pools using Likely custom pricing hook