> For the complete documentation index, see [llms.txt](https://docs.yala.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yala.org/user-guide-mainnet/liquidation.md).

# Liquidation

1\. When your vault's individual collateral ratio drops below the minimum collateral ratio (MCR), the system flags your vault for liquidation.

<br>

2\. The Stability Pool uses its funds to automatically repay the outstanding debt of your liquidated vault.

\
3\. The collateral in your vault is seized by the system to cover the repaid debt.

\
4\. Any surplus collateral remaining after debt repayment will be returned to you. This amount will be available for claim after the liquidation process is completed.

\
5\. Collateral used to repay the debt is distributed as rewards to Stability Pool stakers based on their staked proportion.

\
6\. Navigate to the vault details page. If multiple vaults are liquidated, the total remaining collateral (e.g.  YBTC) across all affected vaults will be displayed.

\
7\. In the position details section, click the "Claim" button. This action allows you to claim the total remaining collateral from all liquidated vaults in one transaction. Gas fees will apply.

<figure><img src="/files/zlOy5GtfSfvJ7QmRmxjS" alt=""><figcaption></figcaption></figure>

8.Once the claim transaction is completed, the total remaining collateral will be sent to your wallet. All details of the liquidation and claim process will be recorded in your transaction history for future reference.

<figure><img src="/files/9urzsTu5zkTyh1ifUP4X" alt=""><figcaption></figcaption></figure>

Please note that under extreme circumstances, if the liquidation process exhausts all YU liquidity from the Stability Pool, a redistribution process will occur. In this process, the system may allocate a portion of the liquidated vaults’ collateral and YU debt to your vaults based on the percentage of your vault’s collateral value out of the platform total collateral value. In order to manage your vaults’ risk, it is suggested to make sure your vault’s collateral ratio is not very close to the Min. Collateral Ratio.


---

# 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.yala.org/user-guide-mainnet/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.
