Likely custom pricing hook on Base

Uniswap v4 Hook Contract 0x0f2552aba439320495f570e3546199716c258088 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 of each swap before it runs, so traders may pay extra, 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 return delta and pulls tokens from the PoolManager using take, likely to collect a fee or skim part of the swap.
  • Keeps running counters (for example a total amount and per-swap stats) in storage that anyone can read through a view function.
  • Has a configuration function taking a single number, likely a fee rate or parameter; who can call it and what limits apply cannot be confirmed from bytecode.
  • Does not touch liquidity adds or withdrawals.
Swap behaviour
Before each swap the hook can adjust the swap amounts and take tokens from the PoolManager, so traders may receive less or pay more than the pool price alone implies. The exact amount, and whether it is capped, cannot be verified from bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Likely charges an extra hook fee on swaps on top of the pool fee, using a stored parameter, but the exact percentage and any cap are unknown from bytecode. The recipient of the taken tokens is also not confirmed.
Owner & admin controls
A function that sets a single stored number exists and is probably the fee or rate setting. Its access control and upper bound cannot be determined from the bytecode.

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 from the swap.

Security & trust assessment

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

Who controls it: Some caller can update a stored parameter that likely drives the swap deduction; whether it is owner-restricted or capped is unknown. It cannot affect LP withdrawals.

Risk to user funds: The hook can take part of traders' swap tokens through return deltas, with an unverified maximum. LP principal cannot be locked or drained by the hook.

Security findings

  • [medium] Swap amounts can be modified: The hook uses a before-swap return delta and calls take, so it can deduct tokens from swaps. The size of the deduction is set by stored values whose caps cannot be verified.
  • [low] Unverified configurable parameter: A one-number setter writes a value used in swap logic. Who can call it and its maximum are unknown.
  • [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.

Contract details

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

Pools using Likely custom pricing hook