> For the complete documentation index, see [llms.txt](https://credit-guild.gitbook.io/introduction/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://credit-guild.gitbook.io/introduction/borrowing/liquidation.md).

# Liquidation

The Ethereum Credit Guild uses a Dutch auction system for liquidations.

There are two circumstances in which a loan can be liquidated: when enough interest accrues that total debt reaches the lending term's maximum [borrow ratio](/introduction/borrowing/lending-terms.md), or when the lending term is [offboarded](/introduction/governance/offboard-a-lending-term.md) by governance.

When a loan's collateral goes to auction, the full debt is asked, but 0 collateral is offered, essentially meaning the collateral has infinite price. Nobody would bid on this and pay the debt for nothing in return. Then, as more collateral gets offered, it might become profitable to pay the debt in exchange of the percentage of collateral that is offered, if the loan was overcollateralized. After midpoint has passed, meaning the collateral is worth less than the debt, the full collateral is offered, and less and less debt gets asked.

The first bid wins the auction.

This auction mechanism is expected to leak minimal value for the borrower, as there is no liquidation penalty, but arbitrageurs will bid in the auction only once they can get enough extra collateral to cover for their operating costs.

To avoid any penalty during liquidation, the borrower can bid on their own collateral before the auction reaches the current market price.

<figure><img src="/files/dWKxLiNcJlWM3Y2C6ywX" alt=""><figcaption><p>The ECG Dutch auction system</p></figcaption></figure>

Multiple auctions houses can be added to the system, with different midpoint & auction durations, or even different mechanisms not based on dutch auction.


---

# 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://credit-guild.gitbook.io/introduction/borrowing/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.
