Oracle hook on Robinhood Chain

Uniswap v4 Hook Contract 0x4b7a0382306f4405f081d7ed0f272060f2ab4080 on Robinhood Chain · Oracle

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

What it does

A simple, immutable hook that runs a read-only, likely oracle-based check before swaps and may reject some trades, while charging no extra fees (all trades pay only the pool's static fee) and leaving LP deposits and withdrawals untouched.

How it works step by step

  • Runs a check before every swap in pools that use it.
  • Links to an external oracle contract whose address is fixed in the code (no storage, no admin setter).
  • The beforeSwap function is read-only, so it cannot move tokens or change state; it can only read data and possibly reject a swap.
  • It cannot take fees, change balances, or touch liquidity positions.
Swap behaviour
Before each swap the hook runs a read-only check, likely consulting the fixed oracle, and may revert the swap if a condition (such as a price check) fails. It cannot deduct tokens from swaps.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Uses the pool's static fee; the hook takes no fee of its own.
Owner & admin controls
No admin controls found; the contract has no storage and no setter functions.

Enabled Uniswap v4 callbacks

beforeSwap

beforeSwap: runs a read-only pre-swap check, likely against the oracle, that can allow or reject the swap.

Security & trust assessment

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

Who controls it: No owner or admin functions were found. The oracle address is fixed in the code, and whoever controls the oracle could influence whether swaps pass the check.

Risk to user funds: The hook cannot touch trader or LP funds and charges 0% extra. LP principal cannot be locked or drained, because the hook never runs on withdrawals.

Security findings

  • [info] Read-only swap check: beforeSwap is a view function with no return deltas, so the hook cannot take tokens or charge fees. At most it can cause swaps to revert.
  • [low] Depends on external oracle: If the fixed oracle misbehaves or stops responding, swaps in the pool could be blocked. LP withdrawals are not affected.
  • [info] Unverified but minimal: No source is published, but the small bytecode exposes only view functions and keeps no mutable state.

Contract details

Verified source
No
Bytecode size
1,647 bytes
Upgradeable proxy
No
Detected patterns
oracle

Pools using Oracle hook