Likely custom pricing hook on Robinhood Chain

Uniswap v4 Hook Contract 0x535f2e08cafc6f43fe52801411ab91fc7aefc088 on Robinhood Chain · 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 swap amounts and withdraw pool currency, but without verified source the specific effect on which trades pay more or less cannot be determined.

How it works step by step

  • Exposes a beforeSwap callback that is called by the PoolManager before each swap on pools using this hook
  • Reads and writes a single storage slot (slot 0) inside the swap path, suggesting a counter, flag or parameter store
  • Calls take(address,address,uint256) on the PoolManager, so it can withdraw currency from the pool during a swap
  • Uses beforeSwapReturnDelta, so the value returned from beforeSwap can alter the swap's token deltas and therefore the amounts traders receive or pay
  • Exposes a parameterless view function (selector 0x43204f98) that reads slot 0, likely a getter for the stored value
Swap behaviour
beforeSwap reads and writes storage slot 0 and calls take on the PoolManager, and its return delta can change the swap's effective amounts; the exact direction of any price or fee effect cannot be determined from bytecode alone.
Liquidity behaviour
No liquidity callbacks.
Fee behaviour
Uses the pool's static fee; no fee-setting logic was identified in the decoded bytecode, but the return-delta path can take or give currency during swaps.
Owner & admin controls
No admin controls found.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap is enabled to run logic before each swap, and beforeSwapReturnDelta is enabled so the hook can adjust swap deltas and move currency via take.

Security & trust assessment

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

Who controls it: No owner or admin functions were identified in the dispatch table, so no privileged key was found; the storage slot could still be writable by swap paths themselves.

Risk to user funds: The hook can move currency out of the pool via take and alter swap deltas through its return value, so it can affect amounts received by traders and held by LPs, though the exact magnitude is not determinable from bytecode.

Security findings

  • [medium] Return delta with currency movement: The hook has beforeSwapReturnDelta permission and calls take on the PoolManager, so it can alter swap settlement amounts and withdraw pool currency during swaps.
  • [info] Unverified source: No verified source is available, so the exact logic of the beforeSwap body and the meaning of storage slot 0 could not be confirmed.
  • [low] Storage-dependent swap path: beforeSwap both reads and writes slot 0, so swap behaviour depends on mutable state that could be changed by prior swaps or by an unidentified setter.

Contract details

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

Pools using Likely custom pricing hook