Likely custom pricing hook on Base

Uniswap v4 Hook Contract 0x637bbe12f63bd272bd755017f203c5a6ea8fc088 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 hook runs custom logic before each swap and can adjust the amounts traders pay or receive by taking currency through the PoolManager, though the precise direction and size of any price effect cannot be determined without verified source.

How it works step by step

  • Implements beforeSwap, which runs before every swap on the pool and can take over pricing for that swap.
  • Uses beforeSwapReturnDelta, so the hook can return a delta that replaces part of the swap amounts.
  • Calls take on the PoolManager to move currency out of the pool to the hook during a swap.
  • Keeps a per-address uint128 mapping in storage slot 0, read and written during swap handling.
  • Exposes a view function taking an address that reads the same mapping.
Swap behaviour
beforeSwap is called on every swap; it can return a specific delta and takes currency from the pool via the PoolManager, so swap output or input is adjusted by the hook logic.
Liquidity behaviour
No liquidity callbacks.
Fee behaviour
Uses the pool's static fee as far as the decoded bytecode shows; no fee-setting selector was found, but the return delta can change the effective amounts paid.
Owner & admin controls
No admin controls found.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap is used to run custom logic and take currency before each swap; beforeSwapReturnDelta lets the hook alter the swap amounts it returns.

Security & trust assessment

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

Who controls it: No owner or admin selector was found, so no single privileged key is evident from the decoded functions, though this cannot be fully confirmed without source.

Risk to user funds: The hook can take currency from the pool and alter swap deltas through its return delta, so it can affect the amounts traders receive or pay; the exact magnitude depends on logic not visible in decoded bytecode.

Security findings

  • [medium] Return delta can alter swap amounts: beforeSwapReturnDelta is enabled and the hook calls take on the PoolManager, so it can shift how much a trader pays or receives on each swap.
  • [medium] Currency movement from the pool: The bytecode selector 0x0b0d9c09 (take) indicates the hook withdraws tokens from the pool during swaps, which needs careful review of the accounting.
  • [info] Panic path present: Panic(uint256) is referenced, indicating arithmetic or assertion failures can revert swaps that touch this hook.
  • [medium] Unverified source: No verified source is available, so the exact pricing and accounting logic cannot be confirmed from the bytecode alone.

Contract details

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

Pools using Likely custom pricing hook