Likely custom pricing hook on Base

Uniswap v4 Hook Contract 0xb9423b1cc3fba2c244bc0c8e0b722cc6cdf48088 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 hook that runs before each swap and can adjust swap amounts and take tokens according to stored parameters of unknown size, while LPs can always add and withdraw liquidity freely.

How it works step by step

  • Runs custom logic before every swap and can change how much of the swap it handles itself.
  • Can pull tokens out of the PoolManager during swaps, likely as a fee or to settle its own pricing logic.
  • Keeps internal counters and a per-key record that update on each swap.
  • Has two unnamed, state-changing setter functions that change parameters used during swaps. Who may call them is not visible.
Swap behaviour
Before each swap the hook runs custom logic and can return a delta that changes the swap amounts, taking tokens from the PoolManager. The exact amount or rate cannot be confirmed from bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Any fee or deduction is applied through the before-swap return delta and taken from the PoolManager. Its size depends on stored parameters, and no cap can be verified from bytecode.
Owner & admin controls
Two unnamed functions write the parameters used during swaps. Access control and limits on these values cannot be determined from bytecode.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom checks and accounting 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: An unknown caller, possibly an owner, can update swap parameters through two setter functions. Their limits cannot be verified from bytecode.

Risk to user funds: The hook can take part of the tokens in a swap, with no verifiable maximum. LP principal cannot be locked or taken by this hook.

Security findings

  • [medium] Swap amounts can be modified: The hook can change swap amounts and take tokens via take(). The size of any deduction is set by stored parameters, with no verifiable cap.
  • [low] Unverified parameter setters: Two unnamed functions change swap-related storage values. Who can call them and what bounds apply are unknown.
  • [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled, so LPs can always withdraw.

Contract details

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

Pools using Likely custom pricing hook