Custom pricing hook on Base

Uniswap v4 Hook Contract 0x05f88edbc065921cf5471cdbbbe5fd79da918088 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

A Uniswap v4 hook that runs logic before each swap and can adjust the swap's token amounts through a return delta, with its precise purpose not determinable without verified source.

How it works step by step

  • Runs custom logic in beforeSwap on every swap in its pool
  • Updates contract storage on each swap call
  • Returns a before-swap delta that can alter the amounts settled with the pool
  • Exposes a view function (selector 0x6c037e78) that reads stored state
  • Its exact economic purpose cannot be confirmed without verified source
Swap behaviour
beforeSwap is invoked on every swap, updates internal state in storage, and returns a delta that can change the amounts settled for the trader.
Liquidity behaviour
No liquidity callbacks.
Fee behaviour
Unclear from decoded bytecode; beforeSwap returns a delta that may adjust swap amounts or fees, but the exact fee logic cannot be determined without source.
Owner & admin controls
No admin controls found.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs before each swap and can influence the swap through its returned value. beforeSwapReturnDelta: allows the hook to return a delta that changes the swap amounts, so the hook can take or give tokens during swaps.

Security & trust assessment

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

Who controls it: No owner or admin function was identified in the decoded selectors, so no privileged key is apparent from this bytecode.

Risk to user funds: Because beforeSwapReturnDelta is enabled, the hook can alter the token amounts settled in swaps, so it can take or hold a portion of trader funds. The exact amount and conditions cannot be determined from the bytecode.

Security findings

  • [medium] Hook can modify swap amounts via return delta: beforeSwapReturnDelta is enabled, so beforeSwap can return a delta that alters the amounts exchanged, letting the hook take a share of swap flows.
  • [info] State updated on every swap: Storage slots 0 and 1 are written in beforeSwap, indicating per-swap or accumulated state updated on every trade. The purpose cannot be confirmed without source.
  • [info] Unverified source limits analysis: Source is unverified and the function selectors are only partially decoded, so the full behaviour and any hidden privileged paths cannot be fully confirmed.

Contract details

Verified source
No
Bytecode size
1,943 bytes
Upgradeable proxy
No
Detected patterns
return-delta

Pools using Custom pricing hook