Reya
  • Start Here
    • Why Reya?
  • REYA PRODUCTS
    • Reya DEX
      • Navigating Reya DEX
        • Dashboard: getting started
          • Creating your margin account
          • Moving funds
          • Checking your account
        • The Trading Screen
          • Trade form
          • Market Data Panel
        • LP Pool
      • Trading on Reya DEX
        • Perpetual Futures
        • Margin
        • Auto-exchange and Liquidations
        • Specifications
        • Conditional Orders
        • FlashSwap
        • Collateral liquidations
        • Settlement and cross-collateralization
      • Docs: Reya DEX REST API
      • Docs: Reya DEX WebSocket
    • Reya Network
      • The structure of Reya Network
      • The Liquidity Layer
        • Reya’s pool for perpetual futures
        • Offering liquidity in the passive pool
        • Deepdive into passive perps
        • Network Owned Liquidity
      • Derivatives Clearing
        • Automatic leveraging of PnL across instruments
        • Cross-collateralization
          • Haircuts
          • Auto-exchange conditions
          • Auto-exchange mechanism
        • Cross-margining
          • The margin system
        • The liquidation engine
          • Ranked liquidations
          • Dutch auction
          • Backstop LPs
          • Insurance Funds
          • Page 1
        • Spot markets
        • Reya Governance
      • What's the roadmap
      • Who's Behind Reya Network
    • rUSD / srUSD
      • rUSD
      • srUSD
      • srUSD How to and FAQs
  • COMMUNITY
    • Join the Reya Community
    • Incentives Overview
      • Experience (XP)
        • Technical details
      • Boosts
      • Ranks and Seasons
    • x.com
  • Technical Docs
    • Reya Python SDK
    • Contract Functions
      • Core
      • Passive Perp Instrument
      • Passive Pool
      • Oracle Adapter
    • Contract Addresses
    • Smart Contract Withdrawals
    • Audits
  • REYA RESOURCES
    • Blog
    • Beginner's Guide to Better Trading with Reya
    • Block Explorer
    • Glossary (coming soon)
    • FAQ (coming soon)
Powered by GitBook
On this page
  • The perps on Reya DEX settle in rUSD. What does that mean?
  • Does that mean I need to hold rUSD in my account to cover my margin requirements?
  • So, my account can hold a variety of tokens, but my margin requirement is still rUSD. How does that work out?
  • Why does my margin balance show up lower than the value of the assets in my account?
  • If not all the collateral value is taken into account and it runs the risk of liquidation, why would I use cross-collateralization?
  1. REYA PRODUCTS
  2. Reya DEX
  3. Trading on Reya DEX

Settlement and cross-collateralization

The perps on Reya DEX settle in rUSD. What does that mean?

To settle in rUSD means that all prices and PnL payments are denominated in rUSD. So, for example, if you follow the price of ETH on the Reya dApp and see it price go up from 3500rUSD to 3550rUSD, that means shorts pay longs 50rUSD. Funding payments and fees are also paid entirely in rUSD.

A direct consequence of this is that your margin requirements are also denominated in rUSD. Margin requirements, after all, are funds locked by the Network to ensure you have enough funds to pay for possible losses.

Does that mean I need to hold rUSD in my account to cover my margin requirements?

Only partially so. One of the killer features of Reya DEX is that enables cross-collateralization: you can hold some tokens other than rUSD in your margin account, and have them count towards your margin requirements. For example, you can cover them instead with a yield bearing collateral: (s)USDe or deUSD. This way, your collateral can earn yield while you trade.

However, you still have to pay your losses in rUSD. The perps, after all, still settle in rUSD! In other words, you should still keep a minimum amount of rUSD in your account, otherwise you may be subject to asset liquidation procedures[link].

So, my account can hold a variety of tokens, but my margin requirement is still rUSD. How does that work out?

That’s where your margin balance comes in: it’s the rUSD-denominated amount used to assess your margin coverage. It converts the value of any token into rUSD using oracle prices (using the same ultra fast Stork data feeds that the perps use), then compares the total amount to your margin requirement. The margin balance is the balance figure that you can find in the trading screen.

Why does my margin balance show up lower than the value of the assets in my account?

Although you can cover your margin requirement with a variety of tokens other than rUSD, their value is taken into account with a haircut, i.e., their value is reduced by a percentage that depends on the particular token.

Haircuts cover for the risk that your tokens reduce in rUSD value by the time they are needed to cover losses. This would leave your account insolvent. You can think of the haircut as a sort of margin requirement in reverse: it’s the amount of rUSD Reya can safely credit your margin balance after taking price fluctuations and volatility into account.

If you want to know the actual value of all your collateral without haircuts, the number you are looking for is the account value or equity, which you can find in your portfolio dashboard.

If not all the collateral value is taken into account and it runs the risk of liquidation, why would I use cross-collateralization?

Cross-collateralization is useful for many reasons, but there are two very big use cases:

  1. accrue yield while trading: if you deposit a yield bearing token into your margin account, that token will still be accruing yield even while you are using it to trade!

  2. boost capital efficiency and reduce liquidation risk: for example, the PnL of an asset is (approximately) matched by the price variations of that asset. Using that asset as collateral will then minimize value fluctuations in your account, it being market neutral while accruing the funding rate.

Remember that perps still settle in rUSD! This means that the cross-collateralization can optimize your capital deployment, but you still need to carefully manage your rUSD balance to avoid collateral liquidations.

PreviousCollateral liquidationsNextDocs: Reya DEX REST API

Last updated 3 months ago