Likely custom pricing hook on Base

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

An unverified, non-upgradeable hook that runs before every swap and can adjust or take part of the swap amount by an unconfirmed amount, while LPs can 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 and pulls tokens out of the PoolManager to an address using take().
  • Keeps a small set of counters or state (three numbers and a timestamp-sized value) that update on each swap and can be read through one view function.
  • Has no liquidity callbacks, so adding and removing liquidity work normally.
Swap behaviour
Before each swap the hook updates its stored state and may take part of the swap amount out of the PoolManager through a return delta. The exact amount or formula cannot be confirmed from bytecode alone.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
May charge or redirect part of the swap amount via a before-swap delta and take(). The rate and recipient are not visible from bytecode, and no fee-setting admin function was found.
Owner & admin controls
No admin controls found. The only external functions are the swap callback and one read-only view.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom logic and updates state before each swap; beforeSwapReturnDelta: lets the hook change the swap's input or output amounts and take tokens.

Security & trust assessment

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

Who controls it: No privileged keys or admin functions were found in the bytecode. Behaviour appears fixed at deployment.

Risk to user funds: Swappers' trade amounts can be altered or partly taken by the hook before the swap, by an amount that cannot be confirmed from bytecode. LP principal cannot be locked or drained by this hook.

Security findings

  • [low] Unverified swap delta logic: The hook can change swap amounts and withdraw tokens with take() before swaps. Its source is not verified, so the size and recipient of any deduction cannot be confirmed.
  • [info] No admin or upgrade path: It is a direct contract with no owner-style setters found, so its behaviour appears fixed.
  • [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,289 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, return-delta

Pools using Likely custom pricing hook