Opium Network
  • Opium Documentation
  • Introduction to Opium
    • What is Opium
    • FAQs
  • Restrictions
    • Restrictions
  • Security and Audits
    • Disclaimer
    • Audits
    • Bounty program
  • Governance
    • Decentralized setup
    • Governance flow
      • Proposal creating
      • Process of voting – technical description
    • $Opium governance token
  • For users
    • Opium.Finance
    • opium.exchange
  • FOR DEVELOPERS
    • Deployment Addresses
      • Opium Protocol v2
      • Opium Protocol v1
    • High-level overview
    • Opium Protocol V2
      • Core
      • Registry
      • SyntheticAggregator
      • OracleAggregator
      • OpiumProxyFactory
      • OpiumPositionToken
    • Opium Protocol V1
      • Core
      • Registry
      • TokenMinter
      • TokenSpender
      • SyntheticAggregator
      • OracleAggregator
      • Helpers
      • Interfaces
      • Common Errors
        • OracleAggregator Errors
        • Core Errors
      • oID - Oracle recipe
      • sID - Derivative recipe
      • EIP-2547: Composable Multiclass Token
    • Tutorials
      • OracleId examples
      • SyntheticId examples
      • End-to-end tutorial
    • Opium API
      • Subgraph V2
      • Subgraph V1
    • SDK
      • Opium V2 SDK
      • Opium Finance Pools SDK
      • Swap Rate SDK/API
  • Complex description
    • Glossary
    • Opium derivatives
    • Oracle and derivative recipes
    • Oracle and derivative registers
    • Opium margin
    • Opium swaps (TMtm)
    • Opium order books
Powered by GitBook
On this page

Was this helpful?

  1. Complex description

Opium margin

PreviousOracle and derivative registersNextOpium swaps (TMtm)

Last updated 5 years ago

Was this helpful?

To create a derivative contract, participants need to provide collateral (margin) that will be used to pay the counterparty if a position is liable. Within this margin, the position payout is guaranteed for the counterparty. In general, the maximum amount of profit to be earned is known for both counterparties. Depending on how derivative recipes are structured, insurance products can be connected to guarantee payouts above the placed margins by counterparties.

In the Opium protocol we define margin as any ERC-20 token.

Users can choose their desired token as a margin and create the corresponding contract. Specifications of the derivative contract include the type and amount of margin token, so participants can assess the risks connected to this contract and know what is the maximum delivery of which amount of tokens. As an example, USDT and DAI are both stable coins pegged to the US Dollar but carry inherently different risks. The Opium Protocol is unbiased towards the usage of margin tokens. Users can choose themselves which tokens they use as collateral.

Any ERC-20 token can be used as collateral