> For the complete documentation index, see [llms.txt](https://docs.replete.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.replete.fi/core-functions/borrow/avoiding-liquidation.md).

# Avoiding liquidation

To avoid liquidation a borrower must have a Health Factor above 1. The Health Factor varies on the value of the underlying asset, value of borrowed assets and accrued interest rate. Repaying the loan or depositing more collateral are the two methods available to improve your Health Factor.

Learn more

{% content-ref url="/pages/sFhACS5rYrhr4CxeOxaO" %}
[Health Factor](/core-functions/borrow/health-factor.md)
{% endcontent-ref %}

A higher Health Factor gives a user more margin to avoid liquidation and using tools to track variations in price of the underlying assets can help in avoiding liquidations and paying a Liquidation fee.

Please be mindful that all assets fluctuate in price action due to market conditions. For example a stablecoin can depeg in an open market, resulting in fluctuation in USD value (e.g. from 1 USD to 0.99 USD in value) impacting your Health Factor and thus increase the possibility of liquidation.

{% hint style="danger" %}
Reduce the risk of liquidation by repaying any outstanding loans or deposit additional collateral to increase your Health Factor.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.replete.fi/core-functions/borrow/avoiding-liquidation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
