Likely custom pricing hook on Ethereum

Uniswap v4 Hook Contract 0x48c3dc86a00f7de76169325df76c602c8ad04088 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 change how much traders pay or receive, with unknown fee rules, while LPs can always add and withdraw liquidity freely.

How it works step by step

  • Runs custom logic before every swap and can adjust swap amounts through a return delta.
  • Records swap-related values (counters or accumulators) in storage on each swap.
  • Exposes a read-only function that reports many stored values, likely stats or configuration.
  • Has two unnamed state-changing functions: one updates per-address records and one updates swap-related settings or counters.
  • Has no liquidity callbacks, so LPs add and withdraw normally.
Swap behaviour
Before each swap the hook runs and may change the amount the trader pays or receives using a return delta. The exact rule, and any fee or restriction, cannot be confirmed from bytecode alone.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Any extra charge would come from the swap return delta, but no fee rate or cap can be read from the unverified bytecode. Otherwise the pool's own fee applies.
Owner & admin controls
Two unnamed state-changing functions exist: one writes a per-address mapping and one changes swap-related storage. Whether these are owner-only, and what limits apply, cannot be confirmed.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom logic and updates stored counters before each swap; beforeSwapReturnDelta: lets the hook change swap input or output amounts.

Security & trust assessment

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

Who controls it: It is unclear who can call the two state-changing functions. At most they could change swap-time behaviour, such as per-address treatment or amounts taken through the return delta.

Risk to user funds: Trader swap amounts can be changed by the hook's return delta, and the maximum deduction cannot be verified. LP principal cannot be locked or taxed by this hook.

Security findings

  • [medium] Unverified hook with swap return delta: The hook can change swap amounts before execution, but without source code there is no way to confirm any cap on deductions.
  • [low] Unknown configuration functions: Two unnamed functions change per-address records and swap-related storage. Their access rules and bounds are unknown.
  • [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,715 bytes
Upgradeable proxy
No
Detected patterns
return-delta

Pools using Likely custom pricing hook