> For the complete documentation index, see [llms.txt](https://crezanetwork.gitbook.io/crezanetwork-whitepaper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://crezanetwork.gitbook.io/crezanetwork-whitepaper/11.-anti-whale-and-circuit-breakers.md).

# 11. Anti-Whale & Circuit Breakers

CREZA limits single-wallet impact and protects the vault during stress events.

```mermaid
flowchart LR
    CALL[User transaction] --> RG[Reentrancy Guard]
    RG --> VL[Volume / limit check]
    VL --> CB{Circuit breaker?}
    CB -->|Normal| EXEC[Execute]
    CB -->|Stress| THROTTLE[Throttle redemptions]
```

## Transaction boundaries

| Limit                | Value                | Purpose                           |
| -------------------- | -------------------- | --------------------------------- |
| Max deposit          | $1,000 USDT / tx     | Blocks whale-sized single entries |
| Max daily withdrawal | $3,000 USDT / wallet | Prevents sudden vault shocks      |

Violations revert with explicit custom errors (e.g. deposit exceeds limit).

## Circuit breaker

If redemptions exceed **15% of vault liquidity in 24 hours**:

* Payouts are **throttled** across blocks
* Panic drains are slowed
* Incoming deposits can stabilize the backing ratio

## Flash-loan & MEV protections

| Control                         | Description                                       |
| ------------------------------- | ------------------------------------------------- |
| **ReentrancyGuard**             | Blocks recursive re-entry on deposit/claim/redeem |
| **Checks-Effects-Interactions** | State updated before external transfers           |
| **Same-block rule**             | No full deposit + exit in one block               |
| **Slippage bounds**             | User sets minimum USDT on redemption              |

These layers reduce sandwich attacks, flash-loan loops, and MEV extraction during high-volume windows.


---

# 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, and the optional `goal` query parameter:

```
GET https://crezanetwork.gitbook.io/crezanetwork-whitepaper/11.-anti-whale-and-circuit-breakers.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
