Avoiding Liquidations

Since Demex allows multiple types of assets to be used in a single CDP, it is hard to manually calculate the actual point where liquidation will occur (since each collateral has a different LTV).

As such, Demex has a numerical value called “Health Factor” that allows a borrower to easily track how safe his collateral currently is. This is similar to other lending protocols such as Aave.

Generally this is how Health Factor can be interpreted:

  • A Health Factor of ≤1 is considered unviable and subject to liquidation by the protocol.

  • A Health Factor of 2 means that 1/2 = 50% more borrowing can be done, or a 50% price drop in the collateral’s relative value can be sustained, before liquidation.

Mathematically, a position’s health factor = 1 when sum(CollateralLiqThreshold x CollateralAmount x CollateralValue) = sum(LoanAmount x LoanValue)

Monitoring Your Health Factor

It's important to monitor your Health Factor and keep it high to avoid liquidation. Keeping your Health Factor over 2, for example, gives you more of a margin to avoid a liquidation.

Users can raise their Health Factor by depositing more collateral assets or repaying part of their loan. By default, repayments increase your health factor more than deposits.

The price fluctuations of stablecoins, like any assets, affects Health Factor; One should be mindful of the stablecoin price fluctuations due to market conditions and how it might affect one's Health Factor. For example, a market price of 1 USDC might not be exactly equal to 1 USD, but instead (e.g.) 0.95 USD.

More details on price oracles can be found here.

Last updated

Was this helpful?