# Insurance Fund

**What is the Insurance Fund?**

The purpose of this insurance fund is to provide a safeguard, ensuring equitable closure of positions for all traders. Consequently, it fosters trust among larger traders, encouraging them to engage in trading activities on the LN Exchange.

**How is the Insurance Fund Generated?**

When the liquidation engine takes over a position, the profits generated from handling that position will be injected into the Insurance Fund. If the liquidation engine closes the position at a price better than the takeover price, the profit will be entirely injected into the Insurance Fund.

**How is the Insurance Fund Used?**

During liquidation, the liquidation engine takes over the user's position and remaining margin at the takeover price. If the position continues to incur losses after liquidation, this loss is regarded as a system liquidation loss. A portion of this loss will be compensated by the Insurance Fund, while the remaining part will be borne by the user.

All Perpetual contracts that use the same collateral share one Insurance Fund to cover potential losses and keep the system stable.

<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.ln.exchange/perpetual/insurance-fund.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.
