How Does the Calculation of Margin Requirements Work On-Chain?

The calculation of margin requirements is performed by the smart contract's internal logic, using real-time price data from an oracle. The contract uses a predefined formula that considers the derivative's notional value, the volatility of the underlying asset, and the chosen collateral's liquidation penalty.

This calculation is executed programmatically and transparently on the blockchain, ensuring all parties can verify the requirement without relying on a centralized clearing house's opaque calculations.

Is the Funding Rate Applied to the Full Notional Value of the Position or Only the Margin?
How Would This Formula Change for a Liquidity Pool Governed by a Constant Mean or Constant Sum Formula?
What Is the Difference between an On-Chain and Off-Chain Data Source for an Oracle?
Who Is Legally Liable If a Smart Contract Autonomously Executes a Transaction Based on Faulty Data from an Oracle?
How Do Different Futures Exchanges Calculate Their Initial Margin Requirements?
What Is a “Data Provider” in the Oracle Ecosystem, and How Does It Interact with the Oracle Network?
How Does the ‘Notional Value’ of a Derivatives Contract Affect the Potential for Slippage?
How Does the Concept of ‘Trustless’ Exchange Relate to OTC DVP in Crypto?

Glossar