Likely custom pricing hook on Base

Uniswap v4 Hook Contract 0x235d45100f227ff99cd800e242c6bde4d7420088 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 is an unverified hook that runs before every swap and could adjust swap amounts by an unknown rule, while LPs can always add and withdraw liquidity freely.

How it works step by step

  • Runs custom logic before every swap in pools that use it.
  • Has swap return-delta permission, so it can in principle change how much a trader pays or receives on a swap.
  • Keeps a small set of counters and a per-address timestamp-like value, updated by two unnamed public functions.
  • Exposes one view function that reads its stored counters.
  • Its exact purpose cannot be confirmed because the source code is not verified.
Swap behaviour
Before each swap the hook runs and updates an internal counter. Because swap return-delta is enabled, it may adjust swap amounts, but the exact rule cannot be read from bytecode alone.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
No explicit fee logic could be confirmed. The pool's static fee applies, but the hook could change swap amounts through return deltas, and any such amount is unknown.
Owner & admin controls
No clear owner checks were found. Two unnamed public functions write the hook's stored counters and a per-address value. Who may call them, and what limits apply, is unknown.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom checks or accounting before each swap; beforeSwapReturnDelta: lets the hook alter the swap's input or output amounts.

Security & trust assessment

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

Who controls it: No owner role was identified. Anyone allowed to call the unnamed setter functions may influence swap-time behaviour, but their access rules are unknown.

Risk to user funds: Traders' swap amounts could be adjusted by an unknown amount through the return delta. LP principal cannot be locked or drained by this hook.

Security findings

  • [medium] Unverified hook with swap return delta: The source is not verified, yet the hook can modify swap amounts before execution. Any fee or adjustment size cannot be bounded from the bytecode.
  • [low] Unidentified state-changing functions: Two unnamed functions update stored values, one of them a per-address mapping. Their effect on swaps is not clear.
  • [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,767 bytes
Upgradeable proxy
No
Detected patterns
return-delta

Pools using Likely custom pricing hook