Likely custom pricing hook on Base

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

This immutable hook can take an unverified share of each swap before it executes and records counters, while LPs can add and withdraw liquidity freely.

How it works step by step

  • Runs a check before every swap in pools that use it.
  • Can change swap amounts through a before-swap return delta and calls the PoolManager to take tokens, likely keeping part of the swap input.
  • Keeps three counters in storage that update on each swap, and a read-only function exposes them.
  • Is never called when liquidity is added or removed, so LPs can withdraw freely.
Swap behaviour
Before each swap the hook can adjust the swap amounts and take tokens from the PoolManager, most likely charging a fee on the input. The exact amount cannot be confirmed from bytecode alone.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
The hook appears to take an extra cut from swaps through a return delta on top of the pool fee. The percentage and recipient cannot be confirmed from the unverified bytecode.
Owner & admin controls
No owner or admin setter functions were found. The only extra function is a read-only view.

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.

Security & trust assessment

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

Who controls it: No admin keys or setter functions are visible, and the contract is a direct, non-upgradeable deployment.

Risk to user funds: The hook can take part of a trader's swap amounts through its return delta, but the exact share is unknown from bytecode. LP principal cannot be locked or drained by this hook.

Security findings

  • [medium] Unverified swap delta with token taking: The hook can change swap amounts and pull tokens through the PoolManager before swaps. Because the source is unverified, the size of this deduction cannot be confirmed.
  • [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.
  • [info] No visible admin functions: Only a swap callback and a view function exist, and the contract is not a proxy.

Contract details

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

Pools using Likely custom pricing hook