> For the complete documentation index, see [llms.txt](https://hertzflow.gitbook.io/hertzflow-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hertzflow.gitbook.io/hertzflow-docs/security/risk-mitigations.md).

# Risk Mitigations

HertzFlow is designed to minimize risk for both traders and liquidity providers through robust on-chain risk controls. That said, decentralized leveraged trading carries inherent risks. Only participate with funds you're comfortable risking, and monitor your positions closely during periods of high volatility.

## How We Protect You

| Risk Type                    | What Can Happen                                                                                                       | How HertzFlow Mitigates It                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Directional Exposure**     | LPs become exposed to price movements when there's a large open interest imbalance, especially during volatility.     | **Dynamic Borrow Rates:** Utilization ratios are monitored in real time, adjusting hourly borrow rates to discourage extreme OI skew. **OI Monitoring:** Continuous tracking of imbalance metrics to adjust parameters proactively.                                                                                                                                                                                                                                                 |
| **Liquidity Risk**           | You may be unable to open/close positions at desired size, or LPs may face withdrawal delays during high utilization. | **Dynamic Position Limits (DPL):** Restricts outsized positions during extreme conditions. **Auto-Rebalancing:** Enforces long-short collateral rebalance to prevent concentration risk.                                                                                                                                                                                                                                                                                            |
| **Keeper Risk**              | Losses from inactive, malicious, or underperforming keepers that handle execution, liquidations, and price updates.   | **Automated Liquidations:** Executed deterministically on-chain by protocol-defined conditions — no manual intervention. **Decentralized Keeper Network:** Multiple independent keeper nodes with collateralized stakes. **Slashing & Incentives:** Penalizes inactive or malicious keepers while rewarding timely execution. **Redundant Failover:** Backup nodes and automated failover ensure continuity during congestion or outages.                                           |
| **Oracle & Price Deviation** | Settlement prices may deviate from order prices due to latency or oracle feed misalignment.                           | **Multi-Oracle Validation:** Pricing relies primarily on **Pyth**, with automatic fallback to a CEX index aggregated from leading exchanges (Binance, OKX, Bybit) plus an internal keeper-driven index for redundancy. **Deviation Threshold:** Trades are rejected if submitted prices deviate beyond predefined thresholds. **Time Travel Execution:** During oracle or network outages, eligible delayed orders may execute retroactively at historically validated fair prices. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://hertzflow.gitbook.io/hertzflow-docs/security/risk-mitigations.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.
