Skip to content
Documentation

Contracts

The on-chain components and what each one is responsible for.

Contract Role
Market Registry The list of markets and their risk parameters, with a hard ceiling on leverage.
Oracle Router Returns a price only if it is fresh, non-zero, valid and inside a sanity band. Otherwise the operation reverts.
Collateral Manager Custody of trader collateral, free or locked.
Vault Liquidity, reservations, utilization limit and depositor shares.
Position Manager Open, close, partial close, add margin, liquidation, fees, open-interest caps and pause.
Insurance Fund Receives its share of fees and the equity left after liquidations.

Rules written in the code

  • Rounding is always against the trader: profits round down, losses round up.
  • Pausing stops new positions only. Closing, adding margin, liquidating and withdrawing free collateral keep working.
  • A price that is stale or invalid blocks opening, closing and liquidation alike.

Addresses

Elysium mainnet, chain 99901.

Contract Address
Vault 0x232fBB524bdCcE708e9f8a43dC30B959eEB1F4aF
Position Manager 0xa8507d00c0Baf7AF6E003Fd5026866837eB539Fc
Collateral Manager 0x348bbc8eCB9A2Ab4c7805f64119f175F6a9A7669
Market Registry 0x247bdF9293e7426733E6504027f9453DDFBa1053
Oracle Router 0xAbc38725e904610Df2d123Cd763EE74FF46CB0eD
Signed Price Adapter 0xadf39F6E55Aa2983De3366cBc063f1f107867276
Insurance Fund 0x7E4eE8aE05FeA22970096b1E7c13307858a1ebFE
Wrapped HYPE (collateral) 0x6239EDb686c169c79104767f4BA18949e52dFe53

Deposits go to the Collateral Manager through the app. Do not send HYPE directly to any of these addresses.