Likely custom pricing hook on Base

Uniswap v4 Hook Contract 0x9f76fd7d6f635e8df7b06c34168fefd5be1a88c8 on Base · 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 tracks swap and deposit state and can adjust swap amounts by an unknown amount, while LPs always remain free to withdraw.

How it works step by step

  • Runs custom logic before and after every swap, tracking counters or state values in storage.
  • Has permission to adjust swap amounts through a before-swap return delta, though no external token-moving calls were detected in the bytecode.
  • Runs a check or records data when liquidity is added, storing a value (possibly a timestamp or age) readable via a public view function.
  • Never runs on liquidity withdrawals, so LPs can always remove their liquidity.
Swap behaviour
Before each swap the hook reads a small configuration value and updates several stored counters, and after each swap it updates another stored value. It is allowed to alter swap amounts via a return delta, but the exact effect cannot be confirmed from bytecode.
Liquidity behaviour
When liquidity is added the hook reads and writes a stored value and could potentially reject the deposit. Remove-liquidity callbacks are disabled, so LPs can always withdraw freely.
Fee behaviour
No explicit fee logic or recipient could be confirmed from bytecode; the swap return-delta permission means the hook could change swap amounts, but any amount or cap is unknown.
Owner & admin controls
No admin or owner functions were found in the dispatched selectors; the stored configuration value appears to have no setter.

Enabled Uniswap v4 callbacks

beforeAddLiquidity, beforeSwap, afterSwap, beforeSwapReturnDelta

beforeAddLiquidity: records or checks a value when LPs deposit; beforeSwap: updates swap-related counters and may adjust amounts; afterSwap: records post-swap state; beforeSwapReturnDelta: allows the hook to modify swap input/output amounts.

Security & trust assessment

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

Who controls it: No privileged keys were found and the contract cannot be upgraded.

Risk to user funds: The hook can alter swap amounts through its before-swap delta, with an unknown range since the source is unverified. LP principal cannot be locked or drained on withdrawal.

Security findings

  • [medium] Swap return delta enabled on unverified code: The hook can change swap amounts before execution, and without source the size of any adjustment cannot be verified.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.
  • [info] No admin functions or proxy: The contract is a direct, non-upgradeable deployment with no visible setter or owner functions.

Contract details

Verified source
No
Bytecode size
2,493 bytes
Upgradeable proxy
No
Detected patterns
return-delta

Pools using Likely custom pricing hook