Expiry Futures
Liquidation
Liquidation
Liquidation Condition
Once this condition is triggered, the position is ready to be liquidated.
Liquidation⟺⎩⎨⎧collateral_size+PNLlong−close_fee≤max_levsize,collateral_size+PNLshort−close_fee≤max_levsize,Expiry Long,Expiry Short.
Where:
PNL=⎩⎨⎧F(S0,r,T0)size(F(S1,r,T1)−F(S0,r,T0)),F(S0,r,T0)size(F(S0,r,T0)−F(S1,r,T1)),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
Pliq=⎩⎨⎧priceer(t0−t1)−sizecollateral_size−close_fee−max_levsizepriceer(t0−t1),priceer(t0−t1)+sizecollateral_size−close_fee−max_levsizepriceer(t0−t1),Expiry Long,Expiry Short.
Where:
price is the oracle price
t_0 is the time position was opened
t_1 is the current time
r is the interest rate
r={rTOKEN-fixed,−rUSDC-fixed,Expiry Long,Expiry Short.