Documentation
SocialsStatisticsLaunch App
  • Welcome to Mars Protocol
  • Getting Started
    • How to set up a Wallet
    • Connect your wallet
    • Using a Credit Account
  • Credit Accounts
  • Perpetual Futures (Perps)
    • Perps Vault (Counterparty Vault)
    • Funding Rate Mechanism
    • Price Impact
    • Open Interest Caps
    • Vault Solvency Protection
    • Health Factor
    • Liquidations
  • Spot & Margin Trading
  • Lending & Borrowing
  • Leveraged Yield Farming
  • High Leverage Strategies
  • Managed Vaults
    • Creating a Vault
      • How to Resume Vault Creation After Failed Transaction
    • Managing a Vault
    • Depositing into Vault
  • Risk Methodology
    • Asset Listing
    • Protocol Risk Framework
    • Perps Risk Framework
      • Maximum Leverage & LTVs
      • SkewScale
      • Open Interest Caps
      • Maximum Funding Velocity
      • Mitigating Risks of Static Parameters
    • Deposit Caps Risk Framework
  • Governance
    • MARS Token
  • Smart Contracts
    • Address Provider
    • Account NFT
    • Credit Manager
    • Health
    • Incentives
    • Oracle
    • Params
    • Red Bank
    • Rewards Collector
    • Swapper
    • Zapper
    • Perps
  • Brand kit
    • The Mars Brand
  • Legal
    • Mars FUD Bible
    • Terms of Service
    • Privacy Policy
    • Cookie Policy
Powered by GitBook
On this page
  • Market Impact Mechanism
  • How It Works
  • Price Impact Examples
  • Market Impact Role
Edit on GitHub
Export as PDF
  1. Perpetual Futures (Perps)

Price Impact

Price impact mechanism simulates an order book by adding a slippage percentage to each order that is proportional to the skew and position size.

Market Impact Mechanism

The market impact model adjusts execution prices based on the current market skew and the size of the incoming order. In this approach traders pay premiums when expanding market imbalance and receive discounts when helping to balance it. The system ensures that larger directional positions face progressively higher costs, naturally limiting extreme skew accumulation.

How It Works

When a trader places an order, the oracle price is adjusted based on both the current market skew and the impact of their specific trade. The execution price is calculated using the formula:

pex=por×(1+InitialPremium+FinalPremium2)p_{ex} = p_{or} \times \left( 1 + \frac{InitialPremium + FinalPremium}{2} \right)pex​=por​×(1+2InitialPremium+FinalPremium​)

where the premiums are determined by the market skew before and after the trade:

InitialPremium=InitialSkewSkewScaleInitialPremium = \frac{InitialSkew}{SkewScale}InitialPremium=SkewScaleInitialSkew​
FinalPremium=FinalSkewSkewScaleFinalPremium = \frac{FinalSkew}{SkewScale}FinalPremium=SkewScaleFinalSkew​

The initial skew represents the current market imbalance, while the final skew shows the market state after the trade is executed. For position opening, FinalSkew=InitialSkew+qFinalSkew = InitialSkew + qFinalSkew=InitialSkew+q, and for position closing, FinalSkew=InitialSkew−qFinalSkew = InitialSkew - qFinalSkew=InitialSkew−q, where qqq is the position size.

The parameter skewSclae is calibtarted to align price slippage in perp trading with that of underlying asset spot trading on external markets under balanced market conditions (zero skew). This ensures appealing trading execution when the market exhibits no directional bias.

Price Impact Examples

Consider an ETH perpetual market with a SkewScale of 1,000,000 ETH and current oracle price of $2,000:

Expanding Skew Example: The market currently has a +50 ETH skew (equivalent to $100,000 at current prices). Alice wants to open a $10,000 long position (5 ETH), further expanding the skew.

  • Initial skew: 50 ETH

  • Final skew: 50+5=5550 + 5 = 5550+5=55 ETH

  • Initial premium: 50÷1,000,000=0.00550 \div 1,000,000 = 0.005%50÷1,000,000=0.005

  • Final premium: 55÷1,000,000=0.005555 \div 1,000,000 = 0.0055%55÷1,000,000=0.0055

  • Average premium: (0.005%+0.0055%)÷2=0.00525%(0.005 \% + 0.0055 \%) \div 2 = 0.00525 \%(0.005%+0.0055%)÷2=0.00525%

  • Execution price: $2,000 \times (1 + 0.0000525) = $2,000.105

Reducing Skew Example: Bob wants to open a $10,000 short position (5 ETH), helping to balance the market.

  • Initial skew: 50 ETH

  • Final skew: 50−5=4550 - 5 = 4550−5=45 ETH

  • Initial premium: 50÷1,000,000=0.00550 \div 1,000,000 = 0.005%50÷1,000,000=0.005

  • Final premium: 45÷1,000,000=0.004545 \div 1,000,000 = 0.0045%45÷1,000,000=0.0045

  • Average premium: (0.005%+0.0045%)÷2=0.00475%(0.005 \% + 0.0045 \%) \div 2 = 0.00475 \%(0.005%+0.0045%)÷2=0.00475%

  • Execution price: $2,000 \times (1 + 0.0000475) = $2,000.095

In this example, Alice pays a small premium of $0.105 per ETH for expanding the skew, while Bob pays a slightly smaller premium of $0.095 per ETH for helping to balance the market. The impact is minimal for small positions relative to the SkewScale but demonstrates how the mechanism rewards market-balancing behavior.

Market Impact Role

The market impact model provides several key benefits to the ecosystem:

  1. Skew Management: By making skew expansion more expensive and skew reduction cheaper, the system naturally encourages balanced markets.

  2. LP Protection: Liquidity providers face reduced directional risk as extreme skew positions become economically prohibitive.

  3. Fair Pricing: Traders who help balance the market are rewarded with better execution prices, while those who increase risk pay appropriate premiums.

  4. Manipulation Resistance: Large coordinated attempts to create extreme skew face increasing costs, making price manipulation attacks economically unfeasible.

This market impact mechanism works in conjunction with the funding rate system to create multiple layers of incentives that promote market stability and protect all participants from excessive directional exposure.

Last updated 4 days ago