Likely custom pricing hook on Ethereum

Uniswap v4 Hook Contract 0x5585a1c6b50a0c7589575c3138b2f6d29fcc0088 on Ethereum · Custom pricing

Volume (24h)
$24
Value locked (TVL)
$0
All-time volume
$24
Pools using this hook
1
Swaps (24h)
1 (1 traders)
Total swaps
1

What it does

This hook runs custom logic before each swap and can take tokens and adjust swap amounts, but which trades pay more or less cannot be determined from the decoded bytecode.

How it works step by step

  • Implements beforeSwap, which runs before each pool swap and can take tokens from the pool through the take function on the PoolManager.
  • Returns a before-swap delta, so the hook itself can absorb part of the swap amount and settle it outside the normal AMM curve.
  • Reads and writes two storage slots (slot 0 and slot 1) during swaps, which likely hold configuration or accounting state.
  • Exposes a view function (selector 0x9f44c71e) that reads the same storage, likely a getter for that state.
  • Uses a panic-based revert path (Panic(uint256)), which indicates arithmetic or bounds checks in its logic.
Swap behaviour
On each swap, beforeSwap runs first, reads and writes its storage, may take tokens from the pool via take, and returns a before-swap delta that changes how much of the swap is filled by the pool; exactly which trades pay more or less cannot be determined from bytecode alone.
Liquidity behaviour
No liquidity callbacks.
Fee behaviour
Uses the pool's static fee.
Owner & admin controls
No admin controls found.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap is enabled to run custom logic before each swap, and beforeSwapReturnDelta is enabled so the hook can return a delta that alters swap amounts and moves currency.

Security & trust assessment

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

Who controls it: Cannot be determined from bytecode; no owner or admin functions were found, but the storage slots may hold a privileged key that controls the delta logic.

Risk to user funds: The hook can take tokens from the pool and alter swap amounts via its return delta, so user and LP funds in the pool are exposed to its logic.

Security findings

  • [high] Return delta with currency movement: The hook returns a before-swap delta and calls take on the PoolManager, so it can move pool funds and change swap settlement amounts.
  • [medium] Unverified source: No verified source is available, so the exact logic behind the storage reads and writes and the delta calculation cannot be confirmed.
  • [medium] Swap gating in beforeSwap: Because the logic runs before every swap, a revert or a bad state in slots 0 or 1 could block swaps in the pool.

Contract details

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

Pools using Likely custom pricing hook