Docs / Start

How a stock token is backed

Every stock token on Elysium is backed one for one by a 1x long on Hyperliquid's own stock perp, in the xyz perp dex (HIP-3, dex index 1, collateral USDC). The long is held by a contract on HyperEVM that anyone can read.

One contract per stock

Each stock has its own backing contract on HyperEVM. A contract on HyperEVM is also an account on HyperCore, so each backing is its own HyperCore account: risk never crosses from one stock to another. The backing holds units long on its market and the USDC behind them in its xyz account.

TokenMarketOrder asset idRead indexSize step
scNVDAxyz:NVDA110002100020.001
scTSLAxyz:TSLA110001100010.001
scAAPLxyz:AAPL110009100090.001
scSP500xyz:SP500110052100520.001
scXYZ100xyz:XYZ100 (US 100 index perp)110000100000.0001
scGOLDxyz:GOLD110003100030.0001

Orders take the asset id 100000 + 10000 x dex + i; the HyperEVM read precompiles take the perp index 10000 x dex + i. The index of each market is resolved from Hyperliquid's meta for the xyz dex when the stock is listed and stored for good in its backing.

The rule: 1 token = 1 unit

Tokens have 18 decimals on Elysium and one token is one unit of the perp. Once a round is settled, the units the backing holds on HyperCore equal the tokens outstanding as counted on HyperEVM (minted minus redeems executed). Funding moves only the USDC part of the account; it never changes the units.

Why 1x cross margin

The backing's xyz account is in cross margin and holds the full notional in USDC. Its account value is units x mark + funding and its maintenance margin is units x mark / (2 x max leverage), so a liquidation would need funding losses close to the whole notional. Markets that are isolated only would hold the position on the default leverage's margin, and an ordinary move could liquidate it: those markets are never listed. The check reads onlyIsolated on chain through precompile 0x80a at listing time.

Reading it yourself

  • Position: precompile 0x813 with (backing, perpIndex) returns the size in lots and the entry notional.
  • Account: precompile 0x80F with (1, backing) returns the xyz account value and raw USD, the same numbers as the info API's clearinghouseState with dex: "xyz".
  • Mark: precompile 0x806; divide by 10^(6 - szDecimals).

The Backing Proof page of the app shows both reads next to the tokens outstanding.