Likely custom pricing hook on Ethereum

Uniswap v4 Hook Contract 0x122488e8d48690643b91a1aa71afc836d3fc0088 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

A small, unverified, non-upgradeable hook that takes tokens from every swap before it executes (the amount is unknown) and tracks swap counters, while LPs keep full freedom to add and withdraw liquidity.

How it works step by step

  • Runs before every swap in pools that use it and can change the swap amounts through a return delta.
  • Calls the PoolManager's take function, so it pulls tokens out of swaps, likely as a fee or skim sent to a fixed recipient or to the hook.
  • Keeps three storage counters that update on each swap and can be read through a public view function. These are likely running totals or a record of the last swap.
  • Never runs on liquidity actions, so LPs can add and withdraw freely.
Swap behaviour
Before each swap, the hook can take part of the swap amount through a return delta and the PoolManager's take call, so traders may get less than a plain pool would give. The exact amount or percentage cannot be read from the unverified bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
The hook appears to take an extra amount from swaps before they execute, but the exact rate and recipient are unknown from bytecode. No admin setter was found, so the logic appears fixed.
Owner & admin controls
No admin controls found. Only the swap callback and one read-only view function are exposed.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom logic and updates counters before each swap; beforeSwapReturnDelta: lets the hook change swap amounts and take tokens from the trade.

Security & trust assessment

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

Who controls it: Not stated.

Risk to user funds: Traders' swap amounts can be reduced by an amount that cannot be determined from bytecode. LP principal cannot be locked or drained by this hook.

Security findings

  • [medium] Unverified hook takes tokens from swaps: The hook uses a swap return delta and the take call to remove tokens from swaps. Without source code, the size of the deduction and where the tokens go cannot be confirmed.
  • [info] LP withdrawals unaffected: Remove-liquidity callbacks and liquidity return deltas are disabled in the hook address, so LPs can always withdraw their principal.
  • [info] No admin or upgrade path: This is a direct contract with no owner setters found. Its behaviour appears fixed.

Contract details

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

Pools using Likely custom pricing hook