RealmEtfHook on Robinhood Chain

Uniswap v4 Hook Contract 0x74dd0a05540f7c1ae419c18f8d55ff220076e8c8 on Robinhood Chain · Aggregator · Verified contract

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

What it does

This hook lets traders buy or sell Realm ETF shares against USDG at the ETF's own price with no pool fee, where buys pay underlying swap costs and sells pay a fixed 0.05% exit fee to the ETF creator, and no outside liquidity is allowed.

How it works step by step

  • Makes Realm ETF shares tradable in a shares/USDG Uniswap v4 pool, where every trade is filled by the ETF itself.
  • A buy deposits your USDG into the ETF (or mints exact shares) and pays out newly minted shares; a sell redeems your shares for USDG.
  • Uses a temporary one-tick liquidity position inside the swap so the pool shows a normal swap and price, then removes it right after.
  • Blocks anyone from adding liquidity; the pool holds no LP liquidity between swaps.
  • Supports exact-input buys and sells plus exact-output buys; exact-output sells revert.
Swap behaviour
Every swap is routed through the ETF: buys deposit USDG and pay out shares at the ETF's price, sells redeem shares for USDG, with the hook covering the trade via its swap delta and a short-lived liquidity position. Exact-output sells are not supported and revert.
Liquidity behaviour
Adding liquidity always reverts, so there are no outside LPs; only the hook places and removes its own temporary position within a swap. Remove-liquidity callbacks are disabled.
Fee behaviour
The pool must have a 0% swap fee and the hook adds none; sells pay the ETF's 0.05% exit fee (in shares, to the ETF creator), and buys bear the ETF's underlying swap costs and a few raw units of rounding dust.
Owner & admin controls
No admin controls in the hook itself; it is immutable. The ETF creator controls rebalance proposals and receives the fixed 0.05% exit fee, and the ETF asset registry is upgradeable elsewhere.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeAddLiquidity, beforeSwap, afterSwap, beforeSwapReturnDelta

beforeInitialize: only allows fee-0, tick-spacing-1 pools for factory ETFs using this hook; beforeAddLiquidity: rejects all outside liquidity; beforeSwap: fills the trade through the ETF and places temporary liquidity; beforeSwapReturnDelta: lets the hook supply the swap's output and absorb its input; afterSwap: verifies the fill, removes the temporary position, and sends leftover USDG to the ETF or locks shares as claims.

Security & trust assessment

Risk level: low (verified source, medium confidence).

Who controls it: The hook has no privileged keys. The ETF creator can propose rebalances and earns the hard-coded 0.05% exit fee, but cannot change hook behaviour.

Risk to user funds: The hook only handles the swapper's tokens within an atomic swap, converting them via the ETF; the only extra deduction is the 0.05% exit fee on sells plus rounding dust. There are no LP funds to lock or drain.

Security findings

  • [info] Immutable hook with no owner: The hook is a direct contract with no admin functions; behaviour is fixed at deployment.
  • [info] Prices come from the ETF: Trade prices are set by the ETF's deposit, mint and redeem logic, which swaps through underlying route pools; buyers pay those pools' fees and impact, sellers pay a fixed 0.05% exit fee.
  • [info] No outside LPs: Adding liquidity is blocked, so no LP principal is ever at risk in this pool.

Contract details

Verified source
Yes (RealmEtfHook)
Compiler
solc 0.8.28+commit.7893614a
Bytecode size
16,231 bytes
Upgradeable proxy
No
Detected patterns
aggregator, erc20, erc6909-claims, liquidity-management, mev-protection, moves-currency, return-delta

Pools using RealmEtfHook