> For the complete documentation index, see [llms.txt](https://docs.garuda-defi.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.garuda-defi.org/garuda-perps-coming-soon/liquidation-and-adl.md).

# Liquidation and ADL

## Liquidation

Liquidation occurs when a trader's position no longer has enough Equity to safely support the open position.

Garuda Perpetual uses Maintenance Margin, Safety Buffer, and Execution Fee to determine when a position becomes eligible for liquidation.

The liquidation mechanism is designed to protect the liquidity vault from losses caused by undercollateralized positions.

### When Does Liquidation Occur?

A position becomes eligible for liquidation when :

> Equity < Execution Fee + Maintenance Margin + Safety Buffer

Where :

* Execution Fee = $1.00
* MMR (Maintenance Margin Ratio) = 0.5%
* Maintenance Margin (MM) = Effective Position Size × MMR
* Buffer Rate = 0.1%
* Safety Buffer = Effective Position Size × Buffer Rate

Therefore :

> Liquidation Threshold = $1.00 + MM + Safety Buffer

**Example :**&#x20;

<pre><code>a trader has:
- Position Size: $10,000
- MMR: 0.5%
- Buffer Rate: 0.1%
- Execution Fee: $1
- Maintenance Margin = $10,000 × 0.5% = $50
- Safety Buffer = $10,000 × 0.1% = $10
<strong>- Liquidation Threshold = $50 + $10 + $1 = $61
</strong></code></pre>

The position becomes eligible for liquidation when its Equity falls below $61

### What Is Equity? <a href="#what-is-equity" id="what-is-equity"></a>

Equity represents the remaining value supporting the position after accounting for its current PnL and applicable fees.

> Equity = Effective Collateral + Unrealized PnL − Accrued Fees

Therefore, Equity can decrease because of:

* Losses from the open position
* Borrow Fees
* Funding Fees
* Other applicable position costs

### Collateral and Liquidation Risk <a href="#collateral-and-liquidation-risk" id="collateral-and-liquidation-risk"></a>

Garuda Perpetual supports both stablecoin and volatile-asset collateral, including USDC, LUNC, and GRDX. This allows traders to open positions without relying solely on stablecoins.

However, volatile collateral introduces additional risks. Changes in the collateral's market price can affect your margin balance, available leverage, and liquidation risk. A sharp price drop may reduce your effective collateral value and trigger liquidation, even if the underlying trading position has not moved significantly against you.

{% hint style="warning" %}
**Always monitor your collateral value and margin ratio.** Higher leverage and volatile collateral increase the risk of liquidation and potential loss of your deposited assets.
{% endhint %}

### Liquidation of Long and Short Positions <a href="#liquidation-of-long-and-short-positions" id="liquidation-of-long-and-short-positions"></a>

The direction of the position determines how the underlying asset's price affects PnL.

<table><thead><tr><th width="162.199951171875">Position</th><th>Price Movement Against Trader</th></tr></thead><tbody><tr><td>Long</td><td>Underlying price decreases</td></tr><tr><td>Short</td><td>Underlying price increases</td></tr></tbody></table>

However, when using non-stablecoin collateral, the collateral price can also affect liquidation risk independently of the position.

### How Is Liquidation Executed? <a href="#how-is-liquidation-executed" id="how-is-liquidation-executed"></a>

Once a position meets the liquidation conditions, the liquidation system can execute the liquidation.

A $1 Execution Fee is allocated to the keeper responsible for successfully executing the liquidation.

The Execution Fee is separate from the Liquidation Penalty.

The liquidation process is :&#x20;

```
Position Equity falls
        ↓
Equity < Liquidation Threshold
        ↓
Position becomes liquidatable
        ↓
Keeper executes liquidation
        ↓
Position is closed
        ↓
Execution Fee → Keeper
Liquidation Penalty → Protocol / Liquidity Vault
```

### How to Reduce Liquidation Risk <a href="#how-to-reduce-liquidation-risk" id="how-to-reduce-liquidation-risk"></a>

Traders can reduce liquidation risk by :

<table><thead><tr><th width="253.39996337890625">Action</th><th>Impact</th></tr></thead><tbody><tr><td>Add collateral</td><td>Increases Effective Collateral and provides more room before liquidation.</td></tr><tr><td>Reduce position size</td><td>Lowers the Maintenance Margin and Safety Buffer requirements.</td></tr><tr><td>Use lower leverage</td><td>Lower leverage generally requires less collateral relative to the position size.</td></tr><tr><td>Use stablecoin as collateral</td><td>Stablecoins such as USDC generally have lower collateral price volatility than other crypto assets.</td></tr><tr><td>Close / reduce the position</td><td>Reducing exposure can increase the distance from liquidation.</td></tr><tr><td>Use Stop Loss (SL)</td><td>A Stop Loss can automatically reduce or close a position before it reaches liquidation conditions.</td></tr></tbody></table>

{% hint style="warning" %}
**Important:** Liquidation is based on the position's **Equity**, not simply the price of the underlying asset. When using non-stablecoin collateral, changes in the collateral's market price and its Collateral Weight can also affect Effective Collateral and therefore liquidation risk.
{% endhint %}

## ADL (Auto-Deleveraging) <a href="#adl-auto-deleveraging" id="adl-auto-deleveraging"></a>

Auto-Deleveraging (ADL) is a risk management mechanism used by Garuda Perps when total pending trader profits become too large relative to the liquidity vault.

ADL helps protect the vault when profitable positions could create excessive claims against available liquidity.

{% hint style="warning" %}
ADL is designed as a last-resort protection mechanism and is only activated when pending trader profits exceed the configured safety threshold.
{% endhint %}

### When Is ADL Triggered? <a href="#when-is-adl-triggered" id="when-is-adl-triggered"></a>

Garuda Perps compares the total pending profit with an ADL Safety Buffer.

> ADL Safety Buffer = Usable Vault × ADL Buffer Rate

if

> Total Pending Profit > ADL Safety Buffer

ADL is triggered.

### Current Parameters

<table><thead><tr><th width="266.20001220703125">Parameter</th><th>Value</th></tr></thead><tbody><tr><td>ADL Target Rate</td><td>30%</td></tr><tr><td>ADL Buffer Rate</td><td>50%</td></tr></tbody></table>

The ADL Target represents the amount of pending profit aims to retain after an ADL event.

> ADL Target = Usable Vault × ADL Target Rate

**Example :**&#x20;

```
Current condition : 
- Usable vault : $32,500.00
- ADL Target Rate : 30%
- ADL Buffer Rate : 50%
- Total Pending Profit : $17,000.00
Calculate ADL Target : 
- $32,500 * 30% = $9,750.00
Calculate ADL Safety Buffer : 
- $32,500 * 50% = $16,250.00 
Because $17,000 > $16,250 = ADL is triggered. 

Profit to be deleveraged : 
- ADL target close = $17,000 - $9,750 = $7,250
therefore, $7,250.00 of pending profit must be reduced. 

ADL Percentage = $7,250 / $17,000 = 42.65% 
Each affected profitable position is partially reduced by approximately 42.65% of its pending profit
```

#### ADL Ranking <a href="#adl-ranking" id="adl-ranking"></a>

When ADL is triggered, platform can prioritize profitable positions according to an ADL ranking.

Higher-ranked positions are subject to ADL first until the required profit reduction is reached.
