# Liquidations

Loan liquidation is the process of closing a loan by repaying it with USH. A loan may be liquidated when a borrower's [health factor](/docs/protocol/health-factor.md) drops below the minimum threshold. With Hyperstable, anyone is able to (partially) repay loans that fall below the minimum health factor.&#x20;

In practice, this means bots will be actively monitoring all loans, looking for opportunities to liquidate.&#x20;

The liquidator receives a preset liquidation reward as a percentage of the repaid USH debt and the borrower pays a liquidation fee to the protocol as a percentage of the remaining overcollateralization at the time of the liquidation.\
\
The liquidation fee is a source of revenue for the protocol that first gets transferred to a safety buffer (one per vault). The safety buffer tracks a percentage of the total USH debt in the vault.

In the rare case where a liquidation is unprofitable for the liquidator who calls it (and the safety buffer has insufficient funds to cover the difference), an alternate liquidation process known as "redistribution" comes into play. \
\
In this -edge case- scenario, the system makes the liquidator whole by drawing the required amount of collateral from the Vault and redistributes the losses between all debtors in the system relative to their share of the Collateral in the vault.


---

# 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://hyperstable.gitbook.io/docs/protocol/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.
