Calculating Liquidation
This page describes how liquidation trade parameters are calculated by a liquidator
Last updated
Was this helpful?
This page describes how liquidation trade parameters are calculated by a liquidator
Last updated
Was this helpful?
When an account appears in margin call state, a liquidation trade could be initiated by a liquidator. Such trade has several important restrictions, so the liquidator needs to calculate peroper trade parameters in order to make the protocol not to reject the trade.
In this section a normal, i.e. no write-off, liquidation is considered.
Let's assume that the account is in margin call state, its position in the asset is long, and its position in the asset is short:
During the liquidation trade, the liquidator sells the amount of the asset for the amount of the asset.
Here a no write-off case is considered:
The trade price is:
The liquidation trade is restricted by the following constraints:
and then:
In this case a write-off case is considered:
In such case the constraits are:
And then:
The approximation sign is here, because the asset prices and are obtained from price oracles and may be slightly differ from the actual market prices. Thus:
By substituting the approximated expression for we have:
In order to satisfy these requirements, the liquidator chooses the value like this:
Here and are small positive numbers, empirically chosen to address imperfection of the asset prices obtained from price oracles.
So the liquidator choses the amout like this: