Kwenta Documentation
DiscordKwentaTwitterBlog
  • 🥂Welcome to Kwenta
  • Getting Started
    • How to start using Kwenta
    • Introduction
    • Getting started on Optimism
    • How to get sUSD
    • Access Kwenta
      • Installing the IPFS Companion to Access Kwenta
      • Backup RPCs
      • Withdrawing from v2 Isolated Margin using Optimistic Etherscan
  • Using Kwenta
    • Futures on Kwenta
    • Jargon
    • Synthetix Isolated Margin
      • Funding
        • Technical Details
      • Delayed Orders
      • Maker/Takers on Kwenta
      • Leverage
      • Liquidations
      • Initial/Maintenance Margin
      • One-Click Trading
        • Onboarding to 1CT
        • FAQ
      • Smart Margin
        • Dashboard Overview
        • Futures UI Overview
        • Get Started with Smart Margin
          • Withdrawing sUSD & ETH
          • Opening/Closing Positions
          • Conditional Orders
            • Limit Orders
            • Stop-Loss Orders
          • FAQ
      • Delegated Trading
        • Getting started
        • Managing Delegates
        • Accessing Accounts Delegate to You
      • Fees
      • Referral Program
        • The Traders Tab
        • The Affiliates Tab
        • Incentive Tiers and Rewards
      • FAQ
    • Perennial Isolated Margin
      • Perennial Intro
        • Market Design
        • Oracles
        • Payoff & Positions
        • Trading Fees and Price Impact
        • Funding Rate
        • Interest Rate
        • Leverage & Liquidations
        • Collateral
        • CodeBase
      • Bridging to Arbitrum
      • Trading on Perennial
        • Dashboard Overview
        • Futures UI Overview
        • Opening/Closing Positions
        • Advanced Orders
          • Limit Orders
          • Stop-Loss Orders
      • Gasless Trading
        • Onboarding to 1-Click-Trading
        • FAQ
  • Kwenta Token
    • Staking KWENTA
      • How to stake KWENTA
      • Escrow and Vesting
      • Transferring Escrow Entries
    • Claiming Rewards
    • Trading Rewards
  • DAO
    • Kwenta Token
    • Governance
    • MarketingDAO
    • devDAO
      • Contributing to the Kwenta Frontend
        • Troubleshooting
        • Testing
  • Developers
    • Deployed Contracts
      • V2 Futures Market Proxy Contracts
    • Verify Kwenta
    • Kwenta SDK
  • Resources
    • Audits
    • Development progress Epoch 1 2024
    • GitHub
Powered by GitBook
On this page

Was this helpful?

  1. Using Kwenta
  2. Synthetix Isolated Margin
  3. Funding

Technical Details

PreviousFundingNextDelayed Orders

Last updated 10 months ago

Was this helpful?

Premium/discount function

The architecture outlined in this SIP takes a layered approach to risk management. Rather than leaning exclusively on funding payments to limit LP risk, a skew-dependent premium is applied to prices quoted by the market (premium for long skew, discount for short skew). By storing premium from takers (expanding skew) to adiabatically distribute to makers (compressing skew), this mechanism creates a high frequency rebalancing incentive while also placing soft limits on maximum exposure held by the debt pool (without the need for explicit restrictive OI limit). Simulating price impact in this way also increases compatibility for assets with a wider range of liquidity profiles and protects LPs from market manipulation.

Funding rate velocity

This model represents a mathematically minor adjustment to the current system, but with significant implications to the overall mechanism. Put simply, instead of r = c * skew, instead we have dr/dt = c * skew. In practice, the effect of this change is that funding rates will continuously drift higher/lower in the presence of uncorrected position imbalances, creating a natural price discovery mechanism for funding rates while simultaneously smoothing out funding rate trajectories. Another notable change is that with this mechanism, LPs would no longer exclusively earn funding (e.g. short skew + positive funding, LPs pay funding). Instead, funding flows through LPs without gain or loss over time (i.e. can be mathematically shown that net funding earned by LPs over time is zero). See plots below illustrating debt pool earning funding when dr/dt > 0 while paying equal and opposite funding when dr/dt < 0

Hybrid oracle approach

This approach creates multiple execution tiers: (1) traditional execution through purely on-chain oracle, (2) asynchronous execution through on-chain oracle, or (3) asynchronous execution using off-chain oracle network whose validity is verified on-chain. Tier (1) is superior in composability, while tier (3) is superior in performance and execution efficiency (tier (2) is somewhere in between). With signed price updates made available off-chain, on-chain costs are only incurred when an exchange is made thus improving cost sustainability while also improving liveliness.

Technical Specification

Find more details at

https://sips.synthetix.io/sips/sip-279/