# Liquidation

### Liquidation Criteria

A user's position is subject to liquidation if their **Account Value** drops below the **RequiredMaintenanceMargin**. This process is vigilant, with Keepers tasked to continuously monitor positions against maintenance margin requirements. They utilize an **eventTrigger** mechanism to initiate liquidations, enhancing market stability.

$$
isLiquidatable =
\begin{cases}
\text{requiredMM} + \text{liquidationFeeUsd} \geq \text{marginBalanceUsd} \\
\end{cases}
$$

**Note:** `requiredMM` stands for the `requiredMaintenanceMargin`

#### Liquidation Mechanics

The liquidation process leverages Chainlink oracle data feeds for accurate price referencing, ensuring liquidations are executed at the oracle's quoted price. This task is facilitated by `LiquidationBranch.sol`, which adheres to predetermined upper and lower price boundaries during the liquidation phase.


---

# 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.zaros.fi/overview/products/perpetuals-dex/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.
