TsunamiX
  • TsunamiX
  • Guides
    • Why TsunamiX?
    • Product Walkthrough
      • Setup Wallet
      • Bridge Funds To TsunamiX
      • Swap
      • Aggregator
      • Price Feeds
    • How does margin trading work?
    • How does being a LP work?
    • NAMI Governance Token
  • TsunamiX V1
    • Trade With Leverage
      • Opening a Position
      • Editing Positions
      • Closing Positions
      • Liquidations
  • TsunamiX V2
    • Trade With Leverage
      • Opening a Position
      • Editing Positions
      • Closing Positions
      • Liquidations
  • Extras
    • V1 FAQs
    • V2 FAQs
    • Long Term Roadmap
    • Future Roadmap
      • Dynamic Liquidity Pricing
    • API Documentation
Powered by GitBook
On this page
  • Open Interest Limits
  • Profit Limits
  1. TsunamiX V2
  2. Trade With Leverage

Liquidations

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 + PnL accruedFees>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 231,640,466 long position on BONK/TUSD with 1,000 TUSD collateral and an entry price of $0.000021585175. Assume the trader has held this position for a few days and has accrued total fees of $30.00. The corresponding deltaLiqPercent is 0.0004144% and the liquidation price would be $0.000021585086.

Open Interest Limits

As a risk management tool, there are Open Interest (OI) limits 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 TLP backed liquidity). These limits, for each tradable asset, will be dynamically adjusted as follows: To ensure that traders can efficiently maximize on our available TVL, TsunamiX V2 has created an OI rebalancing solution, which adjusts the OI limit of each asset based on utility. Our new model compares previous and current asset trading demand in order to offer traders a broader opportunity to access OI on their favorite pairs. The components of this model come together to build the most innovative and strategic OI offerings in the perpetuals space.

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 1% of TVL, however this will likely be reduced over time as the TVL grows. In the event that one's profit exceeds 1% of TVL, then the position will be forced closed.

PreviousClosing PositionsNextV1 FAQs

Last updated 11 months ago