# 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](/earn/nitron-lend-and-borrow/borrowing.md#loan-to-value-ltv)).&#x20;

As such, Demex has a numerical value called “[Health Factor](/earn/nitron-lend-and-borrow/borrowing.md#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.&#x20;

Generally, this is how Health Factor can be interpreted:&#x20;

* A Health Factor of ≤1 is considered unviable and subject to liquidation by the protocol.&#x20;
* 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.&#x20;

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.&#x20;

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.&#x20;

More details on price oracles can be found [here](/trade/futures/pricing-engine.md#oracles).

{% hint style="info" %}
**What happens when my Health Factor is reduced?** \
Depending on the value fluctuation of your deposits, the health factor will increase or decrease: \
\
A) If your Health Factor *increases*, it will improve your borrow position by making the liquidation threshold more unlikely to be reached. \
\
B) If the value of your collateralized assets *decreases* against the borrowed assets, the Health Factor will also be reduced, increasing the risk of liquidation.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.dem.exchange/earn/nitron-lend-and-borrow/borrowing/avoiding-liquidations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
