Likely custom pricing hook on Ethereum

Uniswap v4 Hook Contract 0x4ac7767a6086d1c2d4590097c47e75925ee30088 on Ethereum · Custom pricing

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

What it does

An unverified hook that runs before every swap and can change how much traders pay or receive by an unknown amount, while LPs can still add and withdraw liquidity freely.

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, so it may take or supply part of a trade.
  • Keeps simple counters that are updated on each swap, plus a per-address record set by a separate function.
  • Has two unnamed state-changing functions and one view function whose exact purpose cannot be confirmed without source code.
Swap behaviour
Before each swap the hook runs and updates internal counters, and it may adjust the amounts swapped via a return delta. The size of any adjustment and any restrictions cannot be confirmed from bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
No explicit fee logic could be confirmed. Because swap return deltas are enabled, the hook could take or alter part of a swap amount, but any rate or recipient is unknown.
Owner & admin controls
Two unnamed functions write configuration-like storage (a counter value and a per-address mapping). No owner check could be confirmed, and any caps are unknown.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom checks and accounting before each swap; beforeSwapReturnDelta: lets the hook change how much the swapper pays or receives.

Security & trust assessment

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

Who controls it: It is unclear who can call the configuration functions. Whoever can affects only swap-time behaviour, not LP withdrawals.

Risk to user funds: Swappers' trade amounts can be modified by an unknown amount through the return delta. LP principal cannot be locked or charged on withdrawal.

Security findings

  • [medium] Unverified hook with swap return delta: The hook can alter swap input or output amounts before the swap, and since the source is unverified the exact amounts or limits cannot be confirmed.
  • [low] Unknown configuration functions: Two unnamed functions change stored values, including a per-address mapping, and their access control is not visible.
  • [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled, so the hook cannot block or charge LP withdrawals.

Contract details

Verified source
No
Bytecode size
1,705 bytes
Upgradeable proxy
No
Detected patterns
return-delta

Pools using Likely custom pricing hook