Likely custom pricing hook on Robinhood Chain

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

An unverified, non-upgradeable hook that can take an unknown cut of swap amounts before each trade and later transfer the collected tokens out, while leaving LP deposits and withdrawals untouched.

How it works step by step

  • Runs custom logic before every swap and can change how much of the swap is handled by the pool, using a swap return delta.
  • Can pull tokens out of the PoolManager during a swap (take) and keeps running counters of amounts in storage.
  • Has a toggle function that switches a stored on/off flag which changes how swaps are processed.
  • Has a function that transfers ERC20 tokens held by the hook to a recipient. Who may call it, and where the tokens go, cannot be confirmed from bytecode.
  • Never runs on liquidity adds or removals, so LPs can always withdraw.
Swap behaviour
Before each swap the hook can take part of the swap amount via a return delta and record it in its own counters. Its behaviour depends on a stored on/off flag. The exact amount or percentage taken cannot be determined from bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Uses the pool's static LP fee. The hook may also take an extra cut of swap amounts through its return delta. The size and cap of that cut are unknown from bytecode, and the taken tokens appear to be held by the hook and later transferred out.
Owner & admin controls
A flag-setting function and a token-sweep function exist, but their access control and any limits cannot be verified from bytecode. No fee cap is visible.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs the hook's accounting logic and flag check before each trade; beforeSwapReturnDelta: lets the hook alter or deduct swap amounts and take tokens from the pool manager.

Security & trust assessment

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

Who controls it: An unidentified privileged party may toggle swap behaviour and sweep tokens the hook holds. The exact access rules cannot be verified from bytecode.

Risk to user funds: Traders' swap amounts can be partly taken by the hook via return delta, with an unknown maximum. LP principal in the PoolManager cannot be locked or drained by this hook.

Security findings

  • [medium] Unverified swap-delta logic: The hook can modify swap amounts and take tokens during swaps. The amount and any cap cannot be confirmed without source code.
  • [low] Toggle and sweep functions: One function flips a stored flag that affects swap handling. Another transfers the hook's ERC20 balance out, and its caller restrictions are unknown.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled in the address, so the hook can never block or charge LP withdrawals.

Contract details

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

Pools using Likely custom pricing hook