HIP-4 Markets Docs

Backing and the vault

Every share on Elysium matches a share held on Hyperliquid, and the USDC in the contract is split so buyers' money can't be used for anything else.

One for one

A share exists on Elysium only after the keeper has bought the same share on Hyperliquid. The only way shares are created is a filled buy, sized to what Hyperliquid actually filled. Sells burn shares on Elysium as they're sold on Hyperliquid, and redemptions burn them after settlement. So, for every token id:

  • Supply on Elysium is the number of shares outstanding for a side, readable by anyone on the contract.
  • Backing on Hyperliquid is the keeper account's balance of the same side, readable by anyone on Hyperliquid.

The two numbers move together, trade by trade.

The vault

The HIP4Shares contract holds USDC for two reasons, and keeps them apart:

escrow: open buy ordersfree: pays sells and redemptions USDC held by the HIP4Shares contractEscrow can only go back to the user who posted the order, or pay for that order's shares.
The contract keeps buyers' USDC apart from everything else: withdrawals and payouts can only use the free part.
  • Escrow is the USDC of buy orders that haven't filled yet. It can only go two places: back to the buyer, or toward that same order's shares. Every payout and withdrawal checks it first.
  • Free USDC pays sells and redemptions. When a sell fills on Hyperliquid, the USDC lands in the keeper's Hyperliquid account and the contract pays you from free USDC on Elysium. When a market settles, Hyperliquid pays the keeper's winning shares in USDC and the contract pays the matching redemptions from free USDC.

The operator keeps the free balance topped up by moving USDC from Hyperliquid back to Elysium. Anyone can add to it; only the owner can take free USDC out, and never the escrow.

Checking it yourself

The Contracts page lists the exact reads for supply, escrow, free USDC and the keeper's balances on Hyperliquid.