MUMMY Finance
Launch App
  • Introduction
  • Audits
  • Tokenomics
    • Staking lzMMY on Optimism
  • Rewards
  • Earn
    • MLP
    • MSLP
      • Multi-asset Minting (Fantom Opera)
  • Trade
    • Trading V1
    • Trading V2
      • Positions
        • Profit, Loss, and ROI
        • Increase Collateral/ Leverage
        • Add to Position
        • Triggered Orders
        • Edit Triggered Orders
        • Close Position
      • Platform Mechanics
        • Pyth Price Feed
        • Fees
        • Risk Mitigation
    • Asset Pairs and ID
  • Swap through Aggregator
  • Prediction
    • How to Use Prediction
    • Prediction FAQ
    • Prediction Troubleshooting
  • Wormhole Bridge
    • Wormhole Bridge Guide
    • Wormhole Bridge FAQ
  • Mummy NFT
    • Mummy Club on Fantom
      • Why should you buy Mummy Club NFT?
      • The early bird gets the fat worm
      • Mummy Club Sale Details
      • How to buy and earn with Mummy Club NFT
      • How to stake Mummy NFT and Real Yield on Mummy
    • Mummy Rebirth NFT on Fantom
      • Mummy Rebirth Benefits
      • Mummy Rebirth Sale Details
      • ⚠️Cautions
      • How to mint Mummy Rebirth?
      • FAQs
    • Mummy Club on Optimism
      • Why should you mint NFTs on Optimism Mummy Club?
      • Mummy Club 2nd collection sales details
      • How to buy and earn with Mummy Club NFT on Optimism
  • Social Features
    • Referrals V1
    • Referrals V2
    • Position Share
  • Helpful Guides
    • Trade Guide
      • Deposit/ Withdraw Collateral
      • Open/ Close a position
      • Edit Position
        • Add to position
        • Increase Leverage
        • Increase Collateral
        • Add Take Profit/ Stoploss
        • Add Trailing Stop
    • Connect Wallet
      • Connect with MetaMask
      • Connect with CoinBase
      • Backup RPC URLs
  • Contracts
    • Contracts V1
    • Contracts V2
  • Mobile
  • Community Groups
  • Terms Of Use
Powered by GitBook
On this page
  • Liquidation
  • Liquidation Bounty
  • Open Interest Limits
  • Profit Limits
  1. Trade
  2. Trading V2

Platform Mechanics

Liquidation

The liquidation condition of the smart contract at which a liquidation event can be triggered takes into account accrued fees, collateral and PnL. It is as follows:

accruedFees>liqThreshold×collateral+PnLaccruedFees > liqThreshold \times collateral + PnLaccruedFees>liqThreshold×collateral+PnL

The price at which liquidation occurs is a function of position size, average entry price, collateral, accrued fees (which include closing/funding/borrowing), and a liquidation threshold which is defaulted to be 0.99 - this threshold is put in place to act as a built-in safety net to protect the protocol from losses on a position exceeding collateral.

deltaLiqPercent=(liqThreshold×collateral)−accruedFeesposSizedeltaLiqPercent = \frac{(liqThreshold \times collateral) - accruedFees}{posSize}deltaLiqPercent=posSize(liqThreshold×collateral)−accruedFees​
liqPrice={entryPrice×(1−deltaLiqPercent)if LONGentryPrice×(1+deltaLiqPercent)if SHORTliqPrice =\begin{cases} entryPrice \times (1-deltaLiqPercent) &\text{if } LONG \\ entryPrice \times (1+deltaLiqPercent) &\text{if } SHORT\end{cases}liqPrice={entryPrice×(1−deltaLiqPercent)entryPrice×(1+deltaLiqPercent)​if LONGif SHORT​

If liquidated the trader will lose all of the collateral in their position.

For example, assume a 10,000 long position on BTC/USD with 1,000 USD collateral and an entry price of 28,000. Assume the trader has held this position for a few days and has accrued total fees of $30.00. The corresponding deltaLiqPercent is 9.60% and the liquidation price would be 25,312.

Liquidation Bounty

Besides the fee manager wallet, it is also possible for any 3rd party to trigger a qualifying liquidation. A bounty is put in place to incentivize liquidations to ensure they trigger in a timely matter (ie: liquidation is triggered before the remaining 1% of position collateral is lost due to rapid price movement). The wallet to first liquidate the position will receive up to 10% of the total lost collateral if Mummy's bot goes down or does not trigger in time.

Open Interest Limits

As a risk management tool, there are Open Interest (OI) limits per user as well as for each asset and direction. OI limits for both Longs and Shorts are established to protect the protocol from total OI exceeding TVL (in this case NLP backed liquidity). These limits, for each tradable asset, will be manually adjusted over time as TVL increases.

Profit Limits

In order to further protect the vault, we have put limits (maxProfitPercent) into place per asset for how much any one trade can profit. The default is set to 10% of TVL, however this will likely be reduced over time as the TVL grows. In the event that one's profit exceeds 10% of TVL, then the position will be forced closed.

PreviousClose PositionNextPyth Price Feed

Last updated 1 year ago