# Insurance Fund

## Insurance Fund

The **Insurance Fund** is a core risk-management component in Kana Perps. It is designed to absorb losses from undercollateralized liquidations and provide a backstop for extreme market events.

#### Purpose

The primary role of the Insurance Fund is to ensure that the platform remains solvent and traders are protected even if a liquidated position's loss exceeds the user’s posted collateral.

#### Funding Mechanisms

The Insurance Fund is funded in two main ways:

1. **Voluntary Contributions:**
   * Any user can deposit funds into the Insurance Fund at any time.
   * These deposits are recorded and tracked separately from user trading balances.
   * The fund is denominated in `KanaUSDT`.
2. **Automatic Allocations from Liquidations:**
   * During every liquidation, if the user has remaining collateral:
     * **20%** of that collateral is automatically added to the Insurance Fund.
     * The rest is distributed as per the standard liquidation logic (30% to the liquidator, 50% back to the user).
   * These contributions continue until the fund reaches its configured **threshold cap**.

#### Threshold and Admin Control

* The Insurance Fund has a **platform-wide threshold** that defines the maximum reserve it should hold.
* Once this threshold is reached:
  * **Platform administrators** are granted permission to withdraw excess funds for operational or treasury use.
* Withdrawals can only occur **after the threshold is met**, ensuring that the fund remains adequately capitalized for risk protection.

> **Important:** Admins cannot access or withdraw funds from the Insurance Fund before the threshold is reached, enforcing a strict safeguard for user protection.

#### Use During Insolvency

When a position’s losses **exceed the user’s collateral**, and liquidation is triggered:

* The Insurance Fund **covers the shortfall**.
* In such cases, **no rewards** are given to the liquidator.
* The fund acts as a payer of last resort to ensure markets remain balanced and counterparties are not affected


---

# 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.kanalabs.io/perpetual-futures/kana-perps/breaking-down-kana-perps/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.
