# Liquidation

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

The liquidation process mandates the use of an Oracle to provide requisite price information. Optimex Borrows utilizes the price oracle supplied by Chainlink. The Validation Network depends on this price oracle to accurately determine when to initiate a liquidation event.

The liquidation process, which fundamentally involves selling the collateralized BTC for USDC to repay any outstanding USDC debt on the Morpho Market, is executed via Optimex Swap. The following details concerning this process are noteworthy:

* The Validation Network, rather than the BTC owner, serves as the initiator of the swap transaction for liquidation purposes.
* Given that the Borrower is required to pre-sign the transaction for potential liquidation at the outset, it is logical to expend the entire collateral amount.
* After the repayment of all outstanding debt on the Morpho Market, any resulting collateral surplus which the borrower is entitled to will be denominated in USDC.


---

# 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.optimex.com/optimex-revolutionizing-bitcoin-finance/optimex-borrow/how-it-works/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.
