Expiry Futures
Liquidation Liquidation Condition
Once this condition is triggered, the position is ready to be liquidated.
For liquidation formulas, max_lev refers to liquidation leverage, not the opening leverage cap.
Term Value Liquidation leverage 500xMaintenance / liquidation margin 20 bpsLiquidation close fee 0.0012 * Size
Liquidation ⟺ { collateral_size + PNL long − close_fee ≤ size max_lev , Expiry Long , collateral_size + PNL short − close_fee ≤ size max_lev , Expiry Short . \text{Liquidation} \iff
\begin{cases}
\text{collateral\_size}+\text{PNL}_{\text{long}}-\text{close\_fee}\;\le\;\dfrac{\text{size}}{\text{max\_lev}}, & \text{Expiry Long},\\
\text{collateral\_size}+\text{PNL}_{\text{short}}-\text{close\_fee}\;\le\;\dfrac{\text{size}}{\text{max\_lev}}, & \text{Expiry Short}.
\end{cases} Liquidation ⟺ ⎩ ⎨ ⎧ collateral_size + PNL long − close_fee ≤ max_lev size , collateral_size + PNL short − close_fee ≤ max_lev size , Expiry Long , Expiry Short .
Where:
P N L = { size F ( S 0 , r , T 0 ) ( F ( S 1 , r , T 1 ) − F ( S 0 , r , T 0 ) ) , Expiry Long , size F ( S 0 , r , T 0 ) ( F ( S 0 , r , T 0 ) − F ( S 1 , r , T 1 ) ) , Expiry Short . \mathrm{PNL}=
\begin{cases}
\dfrac{\text{size}}{F(S_0,r,T_0)}\Bigl(F(S_1,r,T_1)-F(S_0,r,T_0)\Bigr), & \text{Expiry Long},\\
\dfrac{\text{size}}{F(S_0,r,T_0)}\Bigl(F(S_0,r,T_0)-F(S_1,r,T_1)\Bigr), & \text{Expiry Short}.
\end{cases} PNL = ⎩ ⎨ ⎧ F ( S 0 , r , T 0 ) size ( F ( S 1 , r , T 1 ) − F ( S 0 , r , T 0 ) ) , F ( S 0 , r , T 0 ) size ( F ( S 0 , r , T 0 ) − F ( S 1 , r , T 1 ) ) , Expiry Long , Expiry Short .
S_1 is the current oracle price
S_0 is the oracle price at entry
T_1 is the current time
T_0 is the time at entry
Liquidation Price
The expiry future liquidation threshold is expressed in theoretical future-price terms.
Liquidation is triggered when the current theoretical future price reaches this threshold.
F liq = { F 0 − ( collateral_size − close_fee − size max_lev ) F 0 size , Expiry Long , F 0 + ( collateral_size − close_fee − size max_lev ) F 0 size , Expiry Short . F_{\text{liq}}=
\begin{cases}
F_0-\dfrac{\left(\text{collateral\_size}-\text{close\_fee}-\dfrac{\text{size}}{\text{max\_lev}}\right)\;F_0}{\text{size}}, & \text{Expiry Long},\\
F_0+\dfrac{\left(\text{collateral\_size}-\text{close\_fee}-\dfrac{\text{size}}{\text{max\_lev}}\right)\;F_0}{\text{size}}, & \text{Expiry Short}.
\end{cases} F liq = ⎩ ⎨ ⎧ F 0 − size ( collateral_size − close_fee − max_lev size ) F 0 , F 0 + size ( collateral_size − close_fee − max_lev size ) F 0 , Expiry Long , Expiry Short .
Where:
F_liq is the theoretical future-price liquidation threshold.
F_0 = F(S_0, r, T_0) = S_0 * exp(r * T_0) is the entry future price.
Liquidation is triggered by comparing F(S_1, r, T_1) against F_liq.
close_fee = 0.0012 * Size for liquidation.
r = { r TOKEN-fixed , Expiry Long , − r USDC-fixed , Expiry Short . r=
\begin{cases}
r_{\text{TOKEN-fixed}}, & \text{Expiry Long},\\
-r_{\text{USDC-fixed}}, & \text{Expiry Short}.
\end{cases} r = { r TOKEN-fixed , − r USDC-fixed , Expiry Long , Expiry Short .