Likely custom pricing hook on Base

Uniswap v4 Hook Contract 0x1bc90f150c5c100a98e39e9442a685a261a54088 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 unverified hook can take a configurable fee from every swap before it executes, with the exact rate unknown, while LPs can always add and withdraw freely.

How it works step by step

  • Runs before every swap and can take a cut of the swap amount using a return delta.
  • Pulls tokens out of the pool manager to a recipient via take, likely as a swap fee or tax.
  • Keeps a small counter/fee setting in storage that a setter function can change.
  • Exposes two read functions reporting its stored settings and totals.
Swap behaviour
Before each swap the hook can adjust the swap amounts and take tokens from the trade, likely as a fee on the input. The exact rate and who it applies to cannot be confirmed from bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Appears to charge a hook fee during swaps based on a stored 16-bit value (if in basis points, that allows up to about 655%, though the real cap is unknown). The fee is taken out via the pool manager, and the recipient cannot be verified.
Owner & admin controls
A two-argument function writes the stored fee/setting value; whether it is owner-restricted and what cap applies cannot be determined from bytecode.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom logic and may charge a fee before each trade; beforeSwapReturnDelta: lets the hook change swap amounts to collect tokens.

Security & trust assessment

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

Who controls it: Some caller can update a stored value used in swap pricing; who holds that right and its limits are unknown from bytecode.

Risk to user funds: The hook can take part of traders' swap amounts at an unverified rate; LP principal cannot be locked or drained by this hook.

Security findings

  • [medium] Swap fee taken via return delta: The hook can deduct tokens from swaps and send them out with take; the exact rate and maximum are not verifiable from unverified bytecode.
  • [low] Adjustable stored setting: A setter function updates a 16-bit stored value read during swaps, likely the fee rate; access control and bounds are unknown.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook cannot block or charge LP withdrawals.

Contract details

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

Pools using Likely custom pricing hook