Likely custom pricing hook on Robinhood Chain

Uniswap v4 Hook Contract 0xebc56a65dcf4c760a1fd1788de674c4b32b24088 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 unverified, non-upgradeable hook runs before every swap, records swap data, and can change swap amounts by an unknown amount influenced by one settable parameter, while LPs can always add and withdraw liquidity freely.

How it works step by step

  • Runs custom logic before every swap and can change how much of the swap goes through the pool by returning a swap delta.
  • Records swap-related values in storage on each swap (a 128-bit value and several counters or accumulators).
  • Has a setter that writes one numeric parameter that the swap logic reads. The bytecode shows no visible access check on it, but this cannot be fully confirmed.
  • Exposes a read-only function that returns the stored swap data.
  • Never runs on liquidity adds or removals, so LPs can always withdraw.
Swap behaviour
Before each swap the hook runs, updates its stored counters, and can return a delta that changes the swap's input or output amounts. The exact formula, any fee, and the role of the configurable parameter cannot be determined from bytecode alone.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
No explicit fee percentage could be identified. The hook can adjust swap amounts through its return delta, but the size of any deduction is unknown from bytecode.
Owner & admin controls
One function writes a single numeric parameter used during swaps. No owner check was clearly identified, and the parameter's bounds are unknown.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom logic and updates stored state before each swap; beforeSwapReturnDelta: lets the hook change the swap amounts the pool processes.

Security & trust assessment

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

Who controls it: No clear owner role was identified. A single parameter setter exists, possibly callable by anyone, that can influence swap behaviour.

Risk to user funds: Trader swap amounts can be altered through the return delta by an amount that cannot be determined from bytecode. LP principal cannot be locked or drained by this hook.

Security findings

  • [medium] Swap amounts can be modified: The before-swap return delta is enabled, so the hook can alter or take part of swap amounts. The caps cannot be verified from unverified bytecode.
  • [low] Unbounded configurable parameter: A setter writes a number that the swap logic reads, and no cap or access restriction was clearly visible in the bytecode.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.

Contract details

Verified source
No
Bytecode size
2,286 bytes
Upgradeable proxy
No
Detected patterns
return-delta

Pools using Likely custom pricing hook