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

# Smart Contracts

## Zest Contracts

### ZestFeeCollector

The core protocol contract — routes user transactions through Zest to collect platform fees atomically.

|              |                                                                                                 |
| ------------ | ----------------------------------------------------------------------------------------------- |
| **Address**  | `0xC732Ac29e12D718407255bD4Be30B51d6b1b2CA3`                                                    |
| **Chain**    | Monad Mainnet (143)                                                                             |
| **Explorer** | [View on Monadscan ↗](https://monadscan.com/address/0xC732Ac29e12D718407255bD4Be30B51d6b1b2CA3) |

**Key functions:**

* `chargeFeeAndForward(target, data, value, volumeUsdE18, maxFeeMon)` — proxy call with fee
* `chargeFee(volumeUsdE18, maxFeeMon)` — pay fee only (2-step pattern)
* `quoteFee(volumeUsdE18)` → `(feeUsdE18, feeMonWei, fresh)` — read current fee quote

## Third-party contracts used

| Protocol          | Contract      | Address                                      |
| ----------------- | ------------- | -------------------------------------------- |
| Merkl Distributor | Claim rewards | `0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae` |
| Multicall3        | Batch reads   | `0xcA11bde05977b3631167028862bE2a173976CA11` |
| WMON              | Wrapped MON   | `0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A` |
| USDC              | USD Coin      | `0x754704bc059f8c67012fed69bc8a327a5aafb603` |
| AUSD              | Analog USD    | `0x00000000efe302beaa2b3e6e1b18d08d69a9012a` |

## Security model

* Zest never holds user funds between transactions
* All fees are collected atomically in the same tx as the user action
* The `ea_access` cookie is httpOnly — Zest's frontend code cannot read it, only the server can
* Wallet connections are read-only until the user explicitly signs a transaction


---

# 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://docs.zest.ac/security/contracts.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.
