> 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-vault-coming-soon/risk-engine.md). Agents can also search and read this documentation through its [MCP server](https://docs.garuda-defi.org/~gitbook/mcp).

# Risk Engine

## What is Risk Engine?

The Risk Engine is the core risk management system of Garuda Perps. It continuously monitors market exposure and liquidity conditions, automatically adjusting risk parameters to protect the liquidity on garuda vault, maintain platform solvency, and provide a secure and efficient trading experience.

## Global Parameters

<table><thead><tr><th width="146">Parameters</th><th width="95">Value</th><th>Remarks</th></tr></thead><tbody><tr><td><a href="#reserve-factor">Reserve factor</a></td><td>35%</td><td>Keeps a portion of the vault as a liquidity buffer for withdrawals and market stress</td></tr><tr><td><a href="#open-interest-oi-cap">Open Interest (OI) cap</a></td><td>100%</td><td>Limits the maximum total exposure relative to the usable liquidity.</td></tr><tr><td><a href="#max-position-size">Max position size</a></td><td>25% from OI Cap</td><td>Prevents a single trader from dominating the market.</td></tr><tr><td><a href="https://docs.garuda-defi.org/garuda-perps-coming-soon/fees.md#funding-fee">Funding rate</a></td><td>Dynamic</td><td>Encourages balance between long and short open interest</td></tr><tr><td><a href="https://docs.garuda-defi.org/garuda-perps-coming-soon/fees.md#borrow-fee">Borrow rate</a></td><td>Dynamic</td><td>Increases borrowing costs as vault utilization rises.</td></tr><tr><td><a href="https://docs.garuda-defi.org/garuda-perps-coming-soon/fees.md#price-impact-fee">Price impact</a></td><td>Dynamic</td><td>Discourages oversized trades that could significantly impact the vault.</td></tr><tr><td>Liquidation penalty</td><td>0.5%</td><td>a fee applied to liquidated positions to cover liquidation costs and protect the liquidity vault from the risks associated with undercollateralized positions.</td></tr><tr><td>Auto-Deleveraging (ADL)</td><td>Dynamic</td><td>Emergency protection that partially reduces profitable positions only under extreme market conditions when vault solvency is at risk.</td></tr></tbody></table>

## Reserve Factor

The Reserve Factor keeps a portion of the liquidity pool reserved and unavailable for trading.

With a 35% Reserve Factor, 35% of the pool is maintained as a liquidity buffer for withdrawals and unexpected market conditions.

> **Purpose:** Ensures the pool maintains sufficient reserves during periods of high market stress.

## Open Interest (OI) Cap

The OI Cap sets the maximum total open positions that can be taken in a perpetual market relative to its usable trading liquidity.

For example, with an OI Cap of 100%, the total open interest cannot exceed the market's usable trading liquidity.

> **Purpose:** Prevents the market from taking excessive overall exposure

## Max Position Size

The Max Position Size limits how large a single trader's position can be relative to the market's OI Cap.

With a 10% limit, one trader can use up to 10% of the market's OI Cap.

> **Purpose:** Prevents a single trader from taking an excessively large position and creating concentrated risk for the liquidity pool.
