> For the complete documentation index, see [llms.txt](https://lenfi.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lenfi.gitbook.io/docs/lenfi-v1-protocol/lenfi-p2p-aada-v1/liquidation.md).

# Liquidation

### What is liquidatio&#x6E;*?*

Loan liquidation is a process of loan termination. Typically, it can occur in two cases:

* When the **Health factor** is **1 or below**, the **Lender** can manually trigger **Oracle Liquidation.**
* When the borrower fails to repay the loan before the deadline.

The **Lender** must have the specified **L** NFT bond, while the borrower must have the underlying **B** NFT bond to claim the remainder from the liquidation.

### **Oracle liquidation (the Borrower does not lose the entire Collateral)**

When the user triggers **Oracle liquidation** (e.g., when the **Health Factor** has dropped to 1 or below 1) and claims the **Collateral**, the amount to be received is calculated by the **Oracle**.

*Collateral\_for\_lender\_in\_ada=(loan\_value\_in\_ada+interest\_value\_in\_ada)+collateral\_value\_in\_ada*

*Collateral\_for\_borrower\_in\_ada=all\_collateral\_in\_ada - (loan\_value\_in\_ada+interest\_value\_in\_ada)*

In the event of **Oracle liquidation** (e.g., the **Health Factor** has dropped to 1 or below 1), the **Lender** pays a **Liquidation commission** (1.6% of the **Collateral**). The **Oracle** gives the **Lender** only part of the **Collateral** to cover the loan + 1.6% as commission.

### **Liquidation due to loan maturity (the Borrower loses the entire Collateral)**

When the **Loan term** matures, the **Lender** can liquidate the loan and claim the entire **Collateral**. **Borrowers** must repay their loans in time to avoid losing their **Collateral**.

**Keep in mind that repaying a loan earlier results in paying smaller interest which does not cover TX fees.**

<figure><img src="/files/9dATPd7e2tFE4oThu7sr" alt=""><figcaption><p>Liquidate loan.</p></figcaption></figure>

### **FAQ**

**1) Oracle fee (1.6 ADA)**

The **Oracle fee** is a **Liquidation fee** rewarded to the nodes (1.6 ADA is split between nodes) for signing and verifying each transaction.

**2) The loan counter starts 30 minutes after providing the loan**

The **Lender** is given a 30-minute advance to sign the transaction before the **Loan expiration time**. After successfully funding the loan, the loan timer activates and begins the countdown.


---

# 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, and the optional `goal` query parameter:

```
GET https://lenfi.gitbook.io/docs/lenfi-v1-protocol/lenfi-p2p-aada-v1/liquidation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
