# Liquidation

Overdue loans in a Pool can be liquidated by any external actor. The loan collateral is then transferred to the Pool's configured collateral liquidator. After the collateral is sold, the proceeds are remitted to the Pool and used to repay the deposit ticks that funded the loan. Liquidation proceeds are used to repay lower ticks before higher ones, so that the highest ticks will absorb any losses from a shortfall of the loan repayment. If the liquidation results in a surplus beyond the defaulted loan's repayment, the surplus is remitted to the borrower.

The official collateral liquidator is the [`EnglishAuctionCollateralLiquidator`](https://github.com/metastreet-labs/metastreet-contracts-v2/blob/master/contracts/liquidators/EnglishAuctionCollateralLiquidator.sol). This liquidator hosts an onchain English Auction, where the highest bid wins the collateral at the highest bid price. This liquidator also supports collateral wrappers, including the [`BundleCollateralWrapper`](https://github.com/metastreet-labs/metastreet-contracts-v2/blob/master/contracts/wrappers/BundleCollateralWrapper.sol) and [`ERC1155CollateralWrapper`](https://github.com/metastreet-labs/metastreet-contracts-v2/blob/master/contracts/wrappers/ERC1155CollateralWrapper.sol), so that bundled collateral is first unwrapped into individual auctions for each of the bundled token IDs. When all collateral associated with a liquidated loan is sold, the aggregated proceeds are remitted to the Pool.

English Auctions are currently configured for 24 hour duration, 10 minute extension window, 15 minute extension time, and 2% bid spacing.


---

# 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://docs.metastreet.xyz/technical-overview/protocol-design/liquidation.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.
