HIP-4 Markets Docs

Trust and safety

What the keeper and the owner can and can't do, and what protects your USDC and shares.

HIP-4 Markets connects two systems that can't call each other directly yet: an Elysium contract and a Hyperliquid account. A keeper links them. This page sets out exactly what that keeper is trusted with.

What the contract guarantees

  • Your price limit holds. A buy can't fill above your maximum average price, and a sell can't fill below your minimum. The contract checks both on every fill.
  • You never pay more than you sent. A fill can use at most the USDC your order brought; the rest is refunded in the same transaction.
  • Escrow is untouchable. USDC in open buy orders can't be used for sells, redemptions or withdrawals.
  • You can always get out of an open order. After 5 minutes you can cancel it yourself and get everything back.
  • Settled is final. An outcome is settled once, and redemptions pay exactly the recorded fraction.

What the keeper is trusted with

  • Making the Hyperliquid trade. The keeper reports how many shares it bought or sold and at what cost; the contract enforces your limits on those numbers but can't see Hyperliquid's book itself.
  • Posting the result. The keeper copies Hyperliquid's settleFraction into the contract. Every result can be checked against Hyperliquid's own API for that outcome.
  • Keeping the backing. The keeper's Hyperliquid account holds the shares that back supply on Elysium. Both sides are public: totalSupply on Elysium and the account's balances on Hyperliquid.

What the owner can do

The owner can change the keeper, pause new orders, adjust the minimum order and the cancel delay (up to one day), and withdraw free USDC. The owner can't mint shares, move shares, change orders or touch escrow.

Where it goes next

Elysium's HyperCore upgrade gives contracts direct reads of Hyperliquid's state and a fast lane for keepers to place orders. When it ships, settlement moves on chain: the contract reads Hyperliquid's result itself instead of taking it from the keeper. See the Roadmap.

Prediction market shares can lose all their value: the losing side of every market pays 0. Hyperliquid limits access to HIP-4 in some countries, including the United States and the United Kingdom; check the rules that apply to you.