SynFutures Docs
SynFuturesDApp
  • Introduction
  • Oyster PERP
    • šŸ’°Pricing
    • šŸ“ˆMarket Order
    • šŸ“‘Limit Order
    • šŸ’²Position and Margin
    • šŸŒ”ļøFunding for Perpetual Futures
    • 🌊Liquidations
    • šŸŖ™Liquidity (LP)
    • āš™ļøProtocol Parameters
      • Blast Network
      • Base Network
    • šŸ”Pair Specifications
      • Blast Network
      • Base Network
    • šŸ”Security
      • Smoothed Spot Index Price
      • Dynamic Penalty Fees
      • Bug Bounty
      • Audit
    • ✨Perp Launchpad
      • Overview
      • FAQ
      • Legal Disclaimer
  • SPOT
    • Aggregator
      • Supported Exchanges
      • Audit
  • Synthia AI Agent
    • Overview
    • šŸŖ„Prompt Guideline
    • šŸ“ŸPortal
  • FAQ
    • šŸ”„SynFutures V3 Features
    • 🌟Trade
    • šŸ’ŽLiquidity (LP)
    • ā”Others
    • šŸ”—Legacy Links
    • Team Contacts
  • Tutorials
    • šŸ“½ļøVideo Tutorial
    • šŸ“œWritten Tutorial
  • Developers
    • šŸ“„Smart Contract Addresses
      • Base Network
      • Blast Network
    • šŸ“šSDK
    • šŸŽØMedia Kit
Powered by GitBook
On this page
  1. Oyster PERP
  2. Security

Dynamic Penalty Fees

PreviousSmoothed Spot Index PriceNextBug Bounty

Last updated 5 months ago

Under the current contract settings, triggering a penalty fee will result in the transaction being reverted.

In a functional derivatives market, it is common for Pfair to deviate from Pspot depending on the liquidity and market situation. However, excessive deviation and unreasonable trading behavior should be discouraged through economic means. The definition of Pmark reflects this principle.

To protect our LPs and limit order makers while not impacting normal trading behavior, Oyster AMM employs a stability penalty mechanism. When a trade results in a higher deviation of fair price to mark price than before the trade, a stability penalty will be charged based on the following, in addition to the normal trading fees paid to LPs or limit order makers.

D(Pfair,Pmark)=max⁔(Pfair,Pmark)min⁔(Pfair,Pmark)āˆ’1D(P_{\text{fair}}, P_{\text{mark}}) = \frac{\max(P_{\text{fair}}, P_{\text{mark}})}{\min(P_{\text{fair}}, P_{\text{mark}})} - 1 D(Pfair​,Pmark​)=min(Pfair​,Pmark​)max(Pfair​,Pmark​)ā€‹āˆ’1
StabilityPenaltyRatio(Pfair)=aā‹…D3+bā‹…D2+cā‹…D+dStabilityPenaltyRatio(P_{\text{fair}}) = a \cdot D^3 + b \cdot D^2 + c \cdot D + d StabilityPenaltyRatio(Pfair​)=aā‹…D3+bā‹…D2+cā‹…D+d

Trades that result in deviation less than MMR would have no stability penalty. Trades that result in deviation above MMR would have an increasing stability penalty ratio.

šŸ”