Likely custom pricing hook on Robinhood Chain

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

A small unverified hook that runs before every swap, can change swap amounts and take tokens by an unknown amount, and leaves LP deposits and withdrawals untouched.

How it works step by step

  • Runs custom logic before every swap and can change the swap amounts using a return delta.
  • Calls the pool manager's take function during swaps, meaning it can pull tokens out of the swap for itself or a recipient.
  • Keeps counters in storage (likely swap counts or amounts) that a view function reports.
  • Has two unnamed write functions that set other stored values, possibly configuration or test parameters.
  • Never runs on liquidity adds or removals, so LPs can withdraw freely.
Swap behaviour
Before each swap the hook runs, updates stored counters, and can adjust the swap amounts and take tokens from the pool manager. The exact amount it takes or modifies cannot be confirmed from bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Uses the pool's static fee, but the hook can also take an extra amount from swaps through its return delta. The size of any such deduction is unknown from bytecode.
Owner & admin controls
Two unnamed functions write stored values, but no access control or caps can be confirmed from bytecode. It is unclear whether they are restricted to an owner.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom logic and records data before each swap; beforeSwapReturnDelta: lets the hook change swap amounts and take tokens from the swap.

Security & trust assessment

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

Who controls it: It is unknown whether an owner controls the settable values. At worst those settings could change how much the hook takes from swaps.

Risk to user funds: The hook can take part of traders' swap amounts with an unverified, unknown maximum. LP principal cannot be locked or drained by this hook.

Security findings

  • [medium] Swap amounts can be modified: The hook can alter swap input or output and take tokens through the pool manager. Its limits are not verifiable without source code.
  • [low] Unverified settable parameters: Two unnamed functions change stored values that may affect swap behaviour. Who can call them and what ranges they accept is unknown.
  • [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
1,132 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, return-delta

Pools using Likely custom pricing hook