> For the complete documentation index, see [llms.txt](https://docs.libre.org/libre-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.libre.org/libre-docs/understanding-the-platform/liquidation.md).

# Mechanics

## Overview

Libre's liquidation system is designed to be **predictable and fair**, giving borrowers time to respond to market volatility while protecting lender funds.

> ⚠️ **Important:** Once your LTV reaches **80%**, a 72-hour liquidation countdown begins. Returning below 80% is **not** enough to stop it — you must bring your LTV **below 70%** within the 72 hours, or your collateral is liquidated.

## Liquidation Thresholds

| Loan-to-Value (LTV)              | Status               | Borrower Action                                                                | Timeline     |
| -------------------------------- | -------------------- | ------------------------------------------------------------------------------ | ------------ |
| **0-70%**                        | **Safe Zone**        | Monitor your loan                                                              | Ongoing      |
| **70-80%**                       | **Warning Zone**     | Lower your LTV; once the 80% timer starts, only dropping **below 70%** is safe | Ongoing      |
| **80%+**                         | **Liquidation Risk** | Bring LTV **below 70%** to avoid liquidation                                   | **72 hours** |
| **≥70% when the 72h timer ends** | **Liquidation**      | Automatic execution                                                            | Immediate    |

## How Liquidation Works

### Example Scenario

Let's walk through a liquidation example:

**Initial Loan Setup**

* Bitcoin price: $100,000
* Collateral: 0.2 BTC = $20,000
* Loan amount: $10,000 USDT
* Initial LTV: 50%

**Price Movement Triggers**

* **At $71,429 BTC**: LTV hits 70% (Warning Zone)
* **At $62,500 BTC**: LTV hits 80% (Liquidation Risk - 72-hour timer starts)
* **After 72 hours**: If LTV is still **70% or higher**, liquidation executes

### The 72-Hour Buffer

When LTV reaches 80%, borrowers have **exactly 72 hours** to bring their LTV **below 70%** (returning under 80% is not enough) by one of:

1. **Add more Bitcoin collateral** to reduce LTV below 70%
2. **Make a partial repayment** large enough to bring LTV below 70%
3. **Repay the full loan** to close the position

### Automatic Liquidation

If LTV is not brought below 70% within 72 hours:

1. **Smart contract execution**: Liquidation triggers automatically
2. **Bitcoin sale**: Collateral sold on libreDEX at market rate
3. **Lender repayment**: USDT lenders are repaid first (principal + interest)
4. **Excess distribution**: Any remaining Bitcoin value goes back to borrower

## Liquidation Math

### Calculation Example

**Liquidation Scenario:**

* Collateral: 0.2 BTC at $62,500 = $12,500 value
* Outstanding debt: $10,000 + interest = $10,275
* Liquidation sale: 0.2 BTC sold at current market rate

**Proceeds Distribution:**

1. **Platform fee**: 1% of collateral value = $125
2. **Lender repayment**: $10,275 (principal + interest)
3. **Borrower receives**: $12,500 - $125 - $10,275 = $2,100

*Note: To avoid liquidation, Bitcoin must recover enough to bring LTV back **below 70%** — roughly **$71,400+** in this example. Recovering past $62,500 only returns you under 80%, which is not enough to stop liquidation.*

## Why 72 Hours?

### Protection Against Volatility

* **Market corrections**: Time for temporary price dips to recover
* **Weekend gaps**: Allows response even during market closures
* **Global accessibility**: Accommodates users in different time zones
* **Technical issues**: Buffer for wallet or connectivity problems

### Fair Warning System

* **No surprise liquidations**: Clear advance notice
* **Multiple response options**: Add collateral, repay, or close position
* **Transparent rules**: Everyone knows exactly when liquidation occurs

## Monitoring Your Position

### Real-Time Tracking

* **Dashboard alerts**: Visual warnings as LTV approaches thresholds
* **Email notifications**: Alerts sent to registered email addresses
* **Mobile app**: Push notifications for critical LTV levels
* **API access**: Programmatic monitoring for advanced users

### LTV Calculation

```
Current LTV = (Loan Balance / Collateral Value) × 100

Where:
- Loan Balance = Principal + Accrued Interest
- Collateral Value = Bitcoin Amount × Current BTC Price
```

## Avoiding Liquidation

### Best Practices

1. **Maintain buffer**: Keep LTV well below 70% when possible
2. **Monitor regularly**: Check your position during volatile markets
3. **Set alerts**: Use notifications to stay informed
4. **Have a plan**: Know how you'll respond if LTV rises

### Response Options

* **Add collateral**: Send more Bitcoin to your vault address — enough to bring LTV below 70%
* **Partial repayment**: Reduce loan balance enough to bring LTV below 70%
* **Full repayment**: Close the position entirely
* **Refinance**: Move to a different pool with better terms

## Liquidation vs. Traditional Platforms

| Feature                  | Libre                    | Traditional Platforms |
| ------------------------ | ------------------------ | --------------------- |
| **Warning period**       | 72 hours                 | Often immediate       |
| **Liquidation trigger**  | 80% LTV (cure below 70%) | Varies (often 75-85%) |
| **Process transparency** | Fully on-chain           | Often opaque          |
| **Borrower protection**  | Grace period + warnings  | Limited               |
| **Excess recovery**      | Returned to borrower     | Varies by platform    |

## Technical Implementation

### Smart Contract Logic

* **Price oracles**: Real-time Bitcoin price feeds
* **Automated monitoring**: Continuous LTV calculation
* **Timer mechanisms**: Precise 72-hour countdown
* **Liquidation execution**: Atomic settlement process

### libreDEX Integration

* **Market sale**: Liquidated Bitcoin sold at current rates
* **Slippage protection**: Safeguards against price manipulation
* **Transparent pricing**: All trades visible on-chain
* **Immediate settlement**: Fast conversion to USDT

The liquidation system balances **borrower protection** with **lender security**, ensuring fair outcomes for all participants in the Libre ecosystem.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.libre.org/libre-docs/understanding-the-platform/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.
