# Liquidation Discount

To expedite the liquidation of all positions, certain factors are considered to incentivize liquidators to act swiftly. The magnitude of the discount is determined by two factors:

1. **Time:** The duration since the position became liquidatable. The discount grows at an approximate rate of 1% every 60 seconds. This results in an additional discount of around 10% after 10 minutes have passed. The discount rate of time factor is capped at 30%, or around 30 minutes.&#x20;

$$
\text{TimeDiscount} = \min(0.3, \text{t} / 100)
$$

> $$\text{t}$$ = # minutes since position is marked as liquidatable

2. **Debt Ratio:** How unhealthy the position is. The aim is to provide greater incentives for the liquidation of positions that are riskier of going underwater. Each asset/strategy has its own MinDesiredHealthFactor (MDHF) which is the factor that determines whether the position is underwater and is used to calculate the discount amount using the following formula:

$$
\text{HealthDiscount} = \max\left(0,\frac{1 - \text{HF}}{1-\text{MDHF}}\right) \text{, when HF < 1}
$$

> $$\text{HF}$$ = Health Factor = 1 / Debt Ratio
>
> $$\text{MDHF}$$ = Min Desired Health Factor

In summary, by including both the time factor and health factor together. The total liquidation bonus is determined by the following formula

$$
\text{LiquidationDiscount} = 1-  (1-\text{TimeDiscount})  \cdot (1 - \text{HealthDiscount})
$$

<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/liquidation-discount.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.
