Liquidation Mechanics
As discussed previously, a user may have a diverse portfolio of collateral tokens (ie, ETH, WBTC, USD) securing various debt tokens (ie, ETH, WBTC, USD). To receive collateral, the Liquidator will pay amounts equal to the users debts in whatever tokens they are denominated. Subsequently, the liquidator is entitled to claim each type of collateral (i) from the user's account, in addition to a liquidator reward (LR). This acquisition occurs through an ordered process, prioritised according to the liquidators preference. The process involves iterative deductions from each collateral type (i) in the order specified by the liquidator until the total amount due is reached.
Price based Liquidations
When a price based liquidation occurs it means the users DTC has passed the users unique Liquidation threshold. The Liquidation Bonus is applied on the difference between the collateral's value and the value of the users debt.
Assuming the ETH price is 1000 USD (1 ETH : 1000 USD) and the users liquidation threshold is 90%. A collateral value of 1.11111 ETH and sum debt of 1000 USDT trigger a liquidation. By paying 1000 USDT the liquidator receives 1.055 ETH, this is because the WALB (Weighted Average Liquidation Bonus) of 50% is multiplied by the difference of 0.11111 ETH. Hence, the bonus can be viewed as a discount of approximately 5.5% on the value of the collateral.
Below is an example of how a Liquidation denominated in USD value is carried out.
Time Based Liquidation
Time based Liquidations occur when a user fails to repay a specific debt on time. As mentioned previously each debt is unique and it may be the case that it is a specific debt that needs to be cleared rather than the sum total debts of the user, as would be the case in a price based liquidation. Hence, for a user with a total number of unique debts (N), we isolate the debt (i) in (N) that has reached expiry.
We use a similar methodology as in a price Liquidation albeit we can expect that the User will be left with significantly more collateral; if at time of liquidation; the user had a healthy DTC ratio. In such a scenario, It is not possible for the users DTC to be greater than or equal to the users unique Liquidation Threshold. We isolate the expired debt and treat it as if it has incurred a price liquidation by dividing the Expired debt by the liquidation threshold to deduce the collateral corresponding to that specific debt and the users liquidation threshold.
Last updated