
Health factor
The health factor is a metric that measures the safety of a loan. It is a numerical representation of how safe a loan is from being eligible for liquidation. The health factor of a loan is computed as follow: Whenever the health factor of a loan drops below 1, the loan can be liquidated. While the health factor stays above 1, the position can’t be liquidated. The health factor can fluctuate depending on the volatility of the collateral’s value, and the debt’s accumulation of interest. Regular monitoring is essential to ensure that a loan remains sufficiently healthy to avoid liquidation. To improve a loan’s health factor, users can deposit more collateral and/or repay a portion of their debt. For example, in the situation where:Collateral_value= $5000Liquidation_threshold= 90%Debt= $4000
Liquidation
Once the health factor of a loan falls below 1, the loan becomes eligible for liquidation. When it happens, anyone can repay the borrower’s debt (denominated inUSG), in exchange for the position’s collateral. Since the collateral value is superior to the debt, liquidators are incentivized to process the liquidation, as they can realize a direct profit. In other terms, when a position is eligible for liquidation, liquidators can buy the collateral at a discount, and then sell it to realize an immediate profit.
When a position is liquidated, the borrower keeps the USG he borrowed, but can’t get back his collateral.
For example, in the situation where:
Collateral_value= $5000Liquidation_threshold= 90%Debt= $4600
USG, to receive $5000 worth of collateral in exchange. He can then sell the collateral to realize a net profit of $400.
As a 5% fee is applied on profits during a liquidation, liquidators actually need to pay 5% of the liquidation profit, in addition to the debt of the liquidated position.
Self-liquidation
It is possible for a loan’s owner to self-liquidate his position, even if the health factor is above 1. In that situation, all the collateral is sold forUSG to repay the debt, and if any, all remaining USG are sent back to the borrower.
For example, in the situation where:
Collateral_value= $5000Liquidation_threshold= 90%Debt= $4300
USG is repaid, and the borrower receives $700 worth of USG.
Liquidation bots
Anyone can process a liquidation whenever a loan’s health factor falls below 1. Usually, liquidations are proceeded by dedicated liquidation bots. However, these bots will liquidate a position only if the transaction is profitable. In a high gas environment, liquidations might not be profitable due to gas costs, even if the collateral’s value is greater than the debt. Therefore, Tangent runs its own liquidation bot to ensure that liquidations always proceed, even if they aren’t profitable. The bot will liquidate any loan eligible for liquidation by selling the collateral to repay the debt, even if the operation isn’t profitable due to high gas costs.Bad debt
Bad debt can occur if the collateral’s value of one or multiple loans drops below the debt’s value. In such a situation, liquidations are unlikely to proceed, as selling the collateral can’t cover the debt, and no rational actor would buy the collateral at a premium. Given the nature of the collaterals onboarded in Tangent’s markets, this situation isn’t expected. However, if it happens, the DAO can seize the collateral of the loans responsible for the bad debt. The bad debt is then registered in the market, and anyone can repay it by burningUSG. The DAO will, by any means possible, try to sell the collateral to repay as much bad debt as possible.
A market that registered a bad debt continues to function normally. However, all the interest and earnings from this specific market might be used to repay the bad debt, until it is fully recovered.