Likely custom pricing hook on Base

Uniswap v4 Hook Contract 0xa480f04a550bd9c1f30a0c8815d8279b5724c088 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 can take a configurable, unconfirmed cut from every swap before it executes and send it to a stored address, while LPs can always withdraw freely.

How it works step by step

  • Runs custom logic before every swap and can change how much of the swap amount reaches the pool.
  • Can take tokens out of a swap using the PoolManager's take function, sending them to an address stored by the hook.
  • Keeps running counters (likely swap totals or fee amounts) updated on each swap, readable through a view function.
  • Has setter functions for a numeric value and an address, which look like a fee or parameter setting and a recipient or configuration address.
  • Never runs on liquidity adds or withdrawals, so LPs can always remove their liquidity.
Swap behaviour
Before each swap the hook can adjust the swap amount through a return delta and pull tokens from the PoolManager to a stored address, which likely acts as a fee or skim on swaps. The exact amount or percentage cannot be confirmed from the bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
The hook appears to take an extra cut from swaps using a value that can be set through a setter function. The cap, the exact percentage and the recipient logic cannot be confirmed without verified source.
Owner & admin controls
A function taking a number and a function taking an address can change stored parameters, possibly a fee rate and a recipient or setup address. Access restrictions and any caps are not verifiable from bytecode.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom checks and accounting before each trade; beforeSwapReturnDelta: lets the hook change swap amounts and take tokens from the trade.

Security & trust assessment

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

Who controls it: Whoever can call the setters may change the swap parameter and the destination address. The worst case is a raised swap deduction, and the bound on it is unknown.

Risk to user funds: Traders' swap amounts can be reduced by an amount the hook calculates, and the maximum is unverified. LP principal in the pool cannot be locked or taken by this hook.

Security findings

  • [medium] Swap amounts can be modified: The hook has swap return-delta enabled and calls take, so it can take tokens from swaps. The size of the deduction depends on a settable value whose cap is unknown.
  • [low] Unverified parameter setters: There are setters for a numeric value and an address. Who can call them and what limits apply cannot be confirmed from the bytecode.
  • [info] LP withdrawals unaffected: The remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.

Contract details

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

Pools using Likely custom pricing hook