# OLL

## Liquidation Mechanism in Collateralized Debt Positions

### Liquidation Condition

A liquidation event is triggered if and only if the Health Factor falls below 1:

$$\text{Health Factor} < 1$$

This can be expressed mathematically as:

$$\frac{\text{Liquidation Threshold} \times \text{Collateral Value}}{\text{Borrowed Amount}} < 1$$

where:

* Borrowed Amount > 0
* Liquidation Threshold ∈ (0,1)

### Collateral Composition

In our model, the collateral is composed of a long asset (e.g., BTC or ETH) and a put option. The collateral value is thus defined as:

$$\text{Collateral Value} = P + \max(X - P, 0)$$

where:

* P is the current price of the long asset
* X is the strike price of the put option

### Liquidation Scenarios

We can distinguish two scenarios based on the relationship between X and P:

#### Scenario 1: X > P

When the strike price exceeds the current asset price:

$$\text{Collateral Value} = P + (X - P) = X$$

Liquidation occurs if and only if:

$$X < \frac{\text{Borrowed Amount}}{\text{Liquidation Threshold}}$$

#### Scenario 2: X ≤ P

When the strike price is at or below the current asset price:

$$\text{Collateral Value} = P$$

Liquidation occurs if and only if:

$$P < \frac{\text{Borrowed Amount}}{\text{Liquidation Threshold}}$$

### Conclusion

Given that X ≤ P in Scenario 2, we can conclude that in both scenarios, liquidation occurs when:

$$X < \frac{\text{Borrowed Amount}}{\text{Liquidation Threshold}}$$

This unified condition provides a concise criterion for liquidation events in our collateralized debt model.


---

# 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.polarity.finance/intro/defi-products/oll.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.
