πŸ«—Dynamic Liquidation

The liquidation mechanism around current lending and borrowing solutions is unfair towards the borrowers. This is mostly due to the fixed closing factor and liquidation incentives. For example, in Aave, when a debt position becomes unhealthy, up to 50% of their collateral is allowed to be liquidated, without consideration of amount required to take the position back to a healthy posi- tion. If a user’s position is unhealthy by an amount of $10 and the collateral is $5000, then $2500 of the user’s collateral is forced to be liquidated. This, com- bined with a fixed liquidation bonus, is what causes a toxic liquidation spiral as demonstrated by Chaudhary et. al. This increases the amount of bad debt incurred by the protocol as we witnessed with Avi Eisenberg’s attack on Aave on November 2022. To mitigate this and make the model fair to borrowers, we will improve upon Aave’s model and develop a dynamic liquidation system.

Dynamic Liquidation Incentives

L.I.=max(0,min(L.I.baseβˆ—1LTVβˆ’1βˆ’e)L.I. = max (0, min(L.I._{base} * \frac{1}{LTV} - 1 -e)

Where L.I.base is the maximum discount provided for the liquidation. The discount is L.I.base under normal circumstances, whenever LTV approaches 1, the discount starts decreasing to avoid liquidation spiral.

Dynamic Closing Factor

c=min(c0βˆ—1βˆ’LTV1βˆ’LTVliq+LTVβˆ’LTVliq1βˆ’LTVliq,1)c = min(c_0 * \frac{1-LTV}{1-LTV_{liq}} + \frac{LTV-LTV_{liq}}{1-LTV_{liq}},1)

LTVliq is the liquidation threshold of an asset and c0 is the minimum closing factor which is a protocol set parameter. Closing factor is c0 when LTV = LTVliq and keeps increasing until LTV = 1, where closing factor is also 1. This model prevents a toxic liquidation spiral, and hence reduces the probability of Cedro incurring a huge amount of bad debt.

Last updated