Oracle hook on Robinhood Chain

Uniswap v4 Hook Contract 0x73dfd2aec79c0e8990906628c1718f878f8ec0c8 on Robinhood Chain · Oracle

Volume (24h)
$7.83K
Value locked (TVL)
$19.54K
All-time volume
$148.37K
Pools using this hook
1
Swaps (24h)
165 (72 traders)
Total swaps
3,584

What it does

An oracle-aware Uniswap v4 hook that adjusts swaps using governance-set parameters, with a pause control and return-delta power over swap amounts.

How it works step by step

  • Runs logic before each swap that can set dynamic parameters or fees
  • Updates internal pool state and observations after each swap
  • Can return a delta to the PoolManager, changing the amounts exchanged
  • Supports a pause flag and governance-managed parameters
  • Stores a fee recipient and an allowlist mapping
Swap behaviour
beforeSwap and afterSwap run on every swap; beforeSwap can alter fees or return deltas and afterSwap updates hook state, with the exact behaviour not verifiable without source.
Liquidity behaviour
Has beforeAddLiquidity, afterAddLiquidity, beforeRemoveLiquidity and afterRemoveLiquidity callbacks defined, but the hook permissions do not enable them, so they are not expected to be invoked by the PoolManager.
Fee behaviour
Likely reads an oracle-derived or hysteresis-based fee parameter from storage in beforeSwap; exact fee formula cannot be determined without source. Possibly a fee recipient receives a share of fees.
Owner & admin controls
A governance address (slot 0x0c offset 1) can transfer governance via transferGovernance (0xd38bfff4), set the fee recipient (0x9fd57e80), toggle a paused flag (0x71fec922 / 0x9a0b92df), manage a boolean allowlist mapping (0xf0bc4596), and set hysteresis and related parameters (0x2f5d221d, 0x9d3e1343). Exact semantics are inferred from selectors only.

Enabled Uniswap v4 callbacks

beforeSwap, afterSwap, beforeSwapReturnDelta

beforeSwap: pre-swap logic that may set a dynamic fee or return delta; afterSwap: post-swap state update such as recording pool state or oracle observations; beforeSwapReturnDelta: lets the hook adjust the swap amounts it returns to the PoolManager.

Security & trust assessment

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

Who controls it: A governance key controls governance transfer, fee recipient, pause state, allowlist and hysteresis parameters, so it can alter swap pricing or fee flows and can likely pause swaps.

Risk to user funds: The hook can alter swap amounts through return deltas and can likely pause or reprice swaps, so it may affect swapper and LP outcomes; it does not appear to hold pool liquidity directly, but exact custody cannot be confirmed from bytecode alone.

Security findings

  • [medium] Pausable by privileged key: Pause flag and setter selectors (0x5c975abb paused, 0x71fec922, 0x9a0b92df) suggest a privileged account can halt hook-managed behaviour.
  • [medium] Return delta gives hook control over swap amounts: beforeSwapReturnDelta is enabled, so the hook can take or give tokens on swaps; a governance key that changes parameters could extract value from swappers.
  • [medium] Single-key governance and fee recipient control: Governance and fee recipient can be changed by a single account with no timelock visible in the selectors.
  • [low] Oracle dependence: Oracle-style observation selectors (observe via external call, poolState, frozen state) indicate reliance on price state that may be manipulable or stale.
  • [info] Unverified source: No source is verified, so exact logic, bounds checks and upgrade paths cannot be confirmed.

Contract details

Verified source
No
Bytecode size
23,239 bytes
Upgradeable proxy
No
Detected patterns
oracle, pausable, return-delta

Pools using Oracle hook