# Liquidation

**Liquidation** occurs when a leveraged position meets at least **one of the following conditions**:

1. [The position is underwater](https://docs.stellaxyz.io/stella-doc/protocol-mechanism/stella-strategy/liquidation#the-position-is-underwater)
2. [The position expires](#the-position-expires)

Liquidators can close a liquidatable position by fully repaying the position’s debt and acquiring the remaining assets at a discounted rate, **denominated in USDC units** (based on the Oracle Price).

## The position is underwater

Debt ratio is a parameter that will help users see how “healthy” or how close the position is to its liquidation point. Stella employs a concept of collateral and borrower credit to calculate debt ratios.

$$
\text{DebtRatio} = \frac{\text{TotalBorrowCredit}}{\text{TotalCollateralCredit}}
$$

If a position in Stella Strategy has a **Debt Ratio** **of over 100%**, it means that the collateral value may not cover the debt (i.e. the borrowed amount) value, implying inability to repay debt. As a result, that position will **become liquidatable.**

## The position expires

To ensure Stella’s ecosystem sustainability, lenders need to be rewarded for allowing their funds to be liquidity sources within a reasonable timeframe. As a result, every position on Stella Strategy will **expire after 30 days since the time of opening**.&#x20;

After expiration, the position will become **liquidatable regardless of the current debt ratio**. Its yield will be realized and, if the yield is positive, will be distributed to lenders following the PAYE model.

Stella encourages leveragoors to **monitor their leverage positions closely** and always be aware of their current PnL and the time until position expiration to avoid any undesirable circumstances.&#x20;

<br>


---

# 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.stellaxyz.io/stella-doc/stella-yield/stella-strategy/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.
