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. 10x leverage is a hard ceiling.
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

The contracts are not deployed on Elysium mainnet. No contract address is published. When addresses exist they will be listed on this page, and nowhere else first.