OPZ
  • Introduction
    • Overview
    • Roadmap
      • ✔️2022: Q1-Q2
      • ✔️2022: Q3-Q4
      • ✔️2023: Q1-Q2
      • ✔️2023: Q3-Q4
      • ✔️2024: Q1-Q2
      • ✔️2024: Q3-Q4
      • 2025: Q1-Q2
      • 2025
  • KeyFusion
    • Introduction to KeyFusion
    • Key Concepts and Techniques
      • Key Generation
      • ECDSA Signing Process
      • Schnorr/EdDSA Signing
    • Security and Usability
  • OPZ App
    • Introduction to OPZ app
    • Getting Started
    • Security
      • Token Safety, Address Verification, and dApp Security
      • MPC-2FA Signing
      • Anti-Zero Transfer
    • Advanced Settings
  • OPZ-AI
    • Introduction OPZ-AI
    • Superintelligence Trader
    • Features
    • OPZ TestNet
  • OPZ-NFC
    • Introduction OPZ-NFC
    • Getting Started
    • NFC-Only Mode
    • OPZ CARD
  • OPZ-DEX (Beta)
    • OPZ-DEX
    • Trading Architecture
    • Type and Time-In-Force
    • Status & Priority Rules
    • Funding Rate Structure
    • OPZ Network
    • Referral Program
    • Resource Hub
  • Community & Tokenomics
    • OPZ Token Overview
    • Presale Schedule
    • Trade & Earn
  • Misc
    • Brand Logo & Guidelines
    • Bug Bounty
Powered by GitBook
On this page
  • 1. Conceptual Framework:
  • 2. Funding Rate Components:
  • 3. Premium Index Calculation (P):
  • 4. Interest Rate Differential (I):
  • 5. Final Funding Rate Calculation (F):
  • 6. Funding Interval:
  • 7. Oracle and Price Data Feeds:
  • 8. Monitoring and Adjustment:

Was this helpful?

  1. OPZ-DEX (Beta)

Funding Rate Structure

1. Conceptual Framework:

  • Objective: To ensure the mark price of OPZ-DEX perpetual contracts meticulously mirrors the underlying asset's spot price.

  • Core Mechanism: Implement a funding exchange system where long and short position holders periodically settle payments, thereby aligning the perpetual contract price with the spot market price, exclusively tailored for OPZ-DEX users.

2. Funding Rate Components:

  • Premium Index (P): Reflects the difference between the perpetual contract price and the spot price.

  • Interest Rate Differential (I): Accounts for the cost of capital considering different interest rates for base and quote currencies.

3. Premium Index Calculation (P):

  • Formula:P=Mark Price−Spot PriceSpot PriceP = \frac{\text{Mark Price} - \text{Spot Price}}{\text{Spot Price}}P=Spot PriceMark Price−Spot Price​

  • Frequency: Calculated every minute to ensure up-to-date data.

  • Mark Price Determination: Use a Time-Weighted Average Price (TWAP) over the past 3 minutes to mitigate price manipulation.

4. Interest Rate Differential (I):

  • Base: Interest rate paid by open long or short perpetual positions based on the current market conditions.

  • Formula: I=BaseRate−QuoteRateI=Base Rate−Quote RateI=BaseRate−QuoteRate

5. Final Funding Rate Calculation (F):

  • Formula: F=P+IF=P+IF=P+I

  • Rate Limits: Implement a strategic cap and floor for the funding rate to safeguard against extreme market volatility, ensuring a balanced trading environment.

6. Funding Interval:

  • Interval Duration: Payments are exchanged every 8 hours to align with industry standards and ensure predictability for traders.

7. Oracle and Price Data Feeds:

  • Decentralized Oracle network for robust and tamper-proof market data.

  • Prices are aggregated from multiple reputable exchanges to calculate the Spot Price.

  • The data feed mechanism is transparent and resistant to single points of failure.

8. Monitoring and Adjustment:

  • Continuously monitor the funding rate mechanism's performance and the market's response.

Last updated 8 months ago

Was this helpful?