Arcadia Finance
  • Introduction
    • Overview
    • Concepts
      • Arcadia DeFi Accounts
      • Arcadia Lending Pools
      • Arcadia Farms
      • Arcadia Rewards
      • Automated Market Maker (AMM)
      • Collateralized Loans
  • Users
    • Lenders
    • Strategists
      • Delta Neutral USD
      • Delta Neutral ETH
      • Bullish Crypto
      • Bearish Crypto
    • Farmers
  • Tutorials
    • Liquidity Provision
    • Accounts
    • First Strategy
    • Managing positions
    • Advanced Strategies
  • Governance
    • Arcadia DAO
    • Token Mechanics
  • Protocol
    • Arcadia DeFi Accounts
    • Flash Actions
    • Arcadia Creditors
    • Margin Calculations
    • Liquidations
    • Asset Managers
      • Compounders
      • Rebalancers
      • Stop Losses
    • Asset Pricing
    • Fees
  • Security & Risk
    • Audits
    • Risk Management
    • Other Security
    • Circuit Breakers
    • Insurance/Cover
    • Roles
  • Developers
    • Contract Addresses
      • Core protocol
      • Creditors
      • Asset Managers
    • Integrations
      • Asset Managers
      • Liquidators
      • Creditors
  • Resources
    • Brand Assets
    • Contact and Support
Powered by GitBook
On this page
  • Margin Requirements
  • 1. Healthy state:
  • 2. Unhealthy state:
  • 3. Liquidatable state:
  • Margin Calculations
  • Collateral Value
  • Liquidation Value
  • Available Margin
  • Open Position
  • Minimum Margin
  • Used Margin
  • Free Margin
  • Examples
  1. Protocol

Margin Calculations

PreviousArcadia CreditorsNextLiquidations

Last updated 3 months ago

The Margin of an Arcadia Account can roughly be seen as the value of collateral assets that a Debtor must hold in a Margin Account to cover the credit risk of its Creditor(s). It is the value of assets that is "locked" when a Debtor opens a position.

Margin Requirements

There are three different account states, as shown in the following figure, depending on the Used Margin of the Account and the risk-adjusted total values of the Account.

1. Healthy state:

The Account is in a healthy state if the used margin is smaller than the Collateral Value:

No account actions are restricted for Accounts in a healthy state, as long as the Account is still healthy at the end of the action.

2. Unhealthy state:

The Account is in an unhealthy state if the used margin is smaller than the Collateral Value but bigger than the Liquidation Value:

Accounts in the unhealthy state can only be de-risked by reducing the open position or adding more collateral assets. It is not possible to withdraw any asset or to increase the open position.

3. Liquidatable state:

The Account is in a liquidatable state if the used margin is larger than the Liquidation Value:

When an account is in the liquidatable state, anyone can trigger a margin call. The Account is now frozen, and the liquidation process of the Account starts. The liquidation ends when either the Account is brought back to a healthy state, or all assets are liquidated.

Margin Calculations

Collateral Value

The Collateral value is the sum of the MtM (mark-to-market) value, discounted with the risk factor (the Collateral Factor) of each asset in the account.

The Collateral Factor is equivalent to the Initial Margin as is commonly used in traditional finance.

Liquidation Value

The Liquidation value is the sum of the MtM (mark-to-market) value, discounted with the risk factor (the Liquidation Factor) of each asset in the account.

The Liquidation Factor is equivalent to the Maintenance Margin as is commonly used in traditional finance.

Available Margin

Hence the Available Margin is nothing different then the previously defined Collateral Value:

Open Position

Minimum Margin

Used Margin

Since collateral in the Account must be held to cover both the open position and the minimum margin, the used margin can be found as:

Free Margin

The free margin can be found by subtracting the used margin from the available margin:

Examples

Coming soon.

um<vcollum < v_{coll}um<vcoll​
vcoll<um<vliqv_{coll} < um < v_{liq}vcoll​<um<vliq​
vliq<umv_{liq} < umvliq​<um
vcollc:=∑iCFic⋅vi(ai)v_{coll}^{c} := \sum_{i} CF_{i}^{c} \cdot v_{i}(a_{i})vcollc​:=i∑​CFic​⋅vi​(ai​)
CFic=11+IMicCF_{i}^{c} = \frac{1}{1 + IM_{i}^{c}}CFic​=1+IMic​1​
vliqc:=∑iLFic⋅vi(ai)v_{liq}^{c} := \sum_{i} LF_{i}^{c} \cdot v_{i}(a_{i})vliqc​:=i∑​LFic​⋅vi​(ai​)
LFic=11+MMicLF_{i}^{c} = \frac{1}{1 + MM_{i}^{c}}LFic​=1+MMic​1​

We define the available margin, amamam, as the total value that the Account can use as margin to secure liabilities.

am=vcollcam = v_{coll}^{c}am=vcollc​

The open position, opcop^copc, equals the size of the liability that a specific Debtor has with a specific Creditor.

As explained in , the minimum margin, MmincM_{min}^cMminc​, is the minimum amount of Collateral Value that must be held in an Account to be able to open a position with a Creditor.

The used margin, umumum, is the total amount of Collateral Value locked by the Account to ensure that the Account remains over-collateralized.

um:=Mminc+opcum := M_{min}^c + op^cum:=Mminc​+opc

The free margin, fmfmfm, is the remaining amount of Collateral Value that can be used to increase the open position or that can be withdrawn from the Account's assets.

fm:=am−umfm := am - umfm:=am−um
Liquidations
Margin Account health states