Vest Exchange
  • Welcome
    • About Vest
    • Getting started
  • Overview
    • Vest Architecture
      • Overview
      • zkRisk Engine
      • Swaps
      • Clearinghouse
      • Order book
      • Oracle
      • Vest Liquidity Pool
      • Blockchain
      • Decentralization
    • Trading
      • Perpetual contract specifications
      • Fees
      • Order book
      • Order types
      • Funding
      • Margin
      • Liquidations
      • Price Indices
      • Market making
    • Providing Liquidity
  • Points
  • Referrals
  • Risks
  • Audits
  • Media Kit
  • Vest API
  • Resources
    • Research
    • Github
    • Twitter
    • Discord
Powered by GitBook
On this page

Was this helpful?

  1. Overview
  2. Trading

Liquidations

Overview

Liquidations occur if your portfolio value drops below the maintenance margin threshold.

If your portfolio value drops below the maintenance margin requirement:

  • Vest’s liquidator identifies the smallest portion of your position needed to reduce systemic risk.

  • The liquidation is executed at the best possible price, minimizing costs for you and minimizes systemic risk across all markets.

  • The process restores your portfolio to a healthy margin level without over-liquidation while preventing shocks to the market.

Partial liquidations

Vest offers partial liquidations, minimizing unnecessary loss for traders. Instead of liquidating your entire position when margin requirements aren’t met, Vest only liquidates enough to bring your account back to a healthy level. Because risk is fully priced in, this means that there are zero liquidation penalties.

Determining liquidation price

A trader's portfolio enters liquidation when:

Portfolio Value < Maintenance Margin Requirement

Note that system then closes positions until:

Account Value ≥ Initial Margin Requirement

The system determines which positions to liquidate by solving the following optimization problem:

minimizew∑i=1nwiqj(i)St(i)subject to0⪯w⪯1(r+ϵ)∑i=1n(1−wi)∣qj(i)∣St(i)≤c−π+∑i=1n(St(i)−sentry(i))qj(i)\underset{w}{\text{minimize}} \quad \sum_{i=1}^n w_i q_j^{(i)} S_t^{(i)} \\ \text{subject to} \quad \mathbf{0} \preceq \mathbf{w} \preceq \mathbf{1} \\ (r + \epsilon)\sum_{i=1}^n (1-w_i)\left|q_j^{(i)}\right|S_t^{(i)} \leq c - \pi + \sum_{i=1}^n (S_t^{(i)} - s_{\text{entry}}^{(i)})q_j^{(i)}wminimize​i=1∑n​wi​qj(i)​St(i)​subject to0⪯w⪯1(r+ϵ)i=1∑n​(1−wi​)​qj(i)​​St(i)​≤c−π+i=1∑n​(St(i)​−sentry(i)​)qj(i)​

Where:

  • wi∈[0,1]w_i \in [0,1]wi​∈[0,1]: Liquidation weight for position iii

  • qj(i)q_j^{(i)}qj(i)​: Size of position iii in asset jjj (signed)

  • St(i)S_t^{(i)}St(i)​: Current price of asset iii

  • sentry(i)s_{\text{entry}}^{(i)}sentry(i)​: Entry price of position iii

  • ccc: Remaining collateral

  • π\piπ: Liquidation fee

  • rrr: Maintenance margin rate

  • ϵ\epsilonϵ: Safety buffer

Liquidation fees on such positions must ensure risk neutrality. In other words they must satisfy

π=(ρ(Xt+τ(θ′))−ρ(Xt+τ(θ)))+ \pi = \left(\rho(X_{t+\tau}(\theta')) - \rho(X_{t+\tau}(\theta))\right)_+ π=(ρ(Xt+τ​(θ′))−ρ(Xt+τ​(θ)))+​

such that

  • θ=(q,C,P,L)\theta = (q, C, P, L)θ=(q,C,P,L)

  • θ′=(q−(1−w)qj,C−(1−w)qjTSt,P,L)\theta ' = (q - (1-w)q_j, C - (1-w)q_j^T S_t, P, L)θ′=(q−(1−w)qj​,C−(1−w)qjT​St​,P,L)

This ensures that Vest

  1. Minimizes Trader Impact: Liquidates only what's necessary

  2. Prevents Cascades: Considers portfolio cross-effects

  3. Risk-Neutral: Fees cover marginal risk increase

  4. Convex Guarantee: Ensures unique optimal solution

PreviousMarginNextPrice Indices

Last updated 10 days ago

Was this helpful?

Technical details on liquidations can be found in the.

whitepaper