# Liquidations

### When Liquidation Occurs? <a href="#when-liquidation-occurs" id="when-liquidation-occurs"></a>

A position becomes eligible for liquidation when the borrow value exceeds the liquidation threshold:

<div align="left" data-with-frame="true"><figure><img src="/files/ag0j7ww2YaDV555z9Y0Y" alt="" width="375"><figcaption></figcaption></figure></div>

* **Your position is safe** — As long as debt stays below this threshold
* **Liquidation Threshold** — Typically 85-90% of collateral value
* **Liquidation eligible** — When debt crosses the liquidation threshold

On the health bar, this is represented by the "Liq" marker. If your utilization reaches or exceeds this point, liquidators can act on your position.

<details open>

<summary>Example: Liquidation Scenario</summary>

You supply $100 of SUI (90% liquidation threshold) and borrow $80:

* Liquidation triggers if debt reaches $90
* SUI drops 15%, collateral now worth $85
* New liquidation threshold = $76.50 (90% of $85)
* Your $80 debt exceeds $76.50 — position is liquidatable

</details>

### How Liquidation Works <a href="#how-liquidation-works" id="how-liquidation-works"></a>

<div align="left" data-with-frame="true"><figure><img src="/files/XfoKBxvt6pDAyMHgJ0pU" alt="" width="563"><figcaption></figcaption></figure></div>

When a position is liquidatable:

1. **Liquidator identifies the position** — External actors monitor the protocol for unhealthy positions
2. **Liquidator repays debt** — They pay off a portion of your borrowed assets
3. **Liquidator receives collateral** — They claim equivalent collateral plus a bonus
4. **Position health improves** — Your debt decreases, improving your health factor

### Close Factor <a href="#close-factor" id="close-factor"></a>

AlphaFi uses a **20% close factor**, meaning liquidators can only repay up to 20% of your debt in a single liquidation.

This partial liquidation approach:

* Gives you a chance to recover your position
* Prevents complete loss of collateral in one transaction
* Allows multiple liquidators to participate if needed

<details open>

<summary>Example: Partial Liquidation</summary>

Your position has $100 debt and becomes liquidatable:

* Liquidator can repay up to $20 (20% close factor)
* They receive $20 worth of your collateral plus the liquidation bonus
* Your remaining debt is $80
* If still undercollateralized, another liquidation can occur

</details>

### Liquidation Bonus <a href="#liquidation-bonus" id="liquidation-bonus"></a>

Liquidators receive a bonus as incentive to maintain protocol health. This bonus is split between:

* The liquidator — Compensation for gas costs and risk
* The protocol — Contributes to protocol revenue

The bonus comes from your collateral, meaning you lose slightly more collateral than the debt repaid.

### Avoiding Liquidation <a href="#avoiding-liquidation" id="avoiding-liquidation"></a>

Protect your position by:

<div align="left" data-with-frame="true"><figure><img src="/files/ag0j7ww2YaDV555z9Y0Y" alt=""><figcaption></figcaption></figure></div>

<table><thead><tr><th width="245.3203125">Action</th><th>Effect</th></tr></thead><tbody><tr><td>Monitor your health bar</td><td>Stay aware of your position status</td></tr><tr><td>Keep utilization low</td><td>Borrow well below your Safe Borrow Limit</td></tr><tr><td>Add collateral</td><td>Increases your thresholds</td></tr><tr><td>Repay debt</td><td>Directly improves health factor</td></tr><tr><td>Diversify collateral</td><td>Reduces impact of single-asset price drops</td></tr></tbody></table>

<details open>

<summary>Setting a personal safety marging</summary>

A common practice is to never borrow more than 50-60% of your Safe Borrow Limit. This provides buffer for:

* Normal market volatility
* Interest accrual
* Time to react if prices move

If your health bar shows utilization above 70-80%, consider taking action.

</details>

### Extreme Volatility Protection <a href="#extreme-volatility-protection" id="extreme-volatility-protection"></a>

AlphaFi Lend includes special liquidation settings that activate during periods of extreme market volatility. These mechanisms provide additional protection for the protocol during rapid price movements.

*Detailed documentation for volatility protection settings coming soon.*


---

# 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.alphafi.xyz/lend/liquidations.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.
