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

# Architecture

## Yield engines

CheomaYield runs **its own proprietary yield engines**. The settlement chain is not where yield is sourced — yield comes from two strategy sleeves *inside* the vaults:

1. **GCC sukuk bonds (core, \~99%)** — sovereign and corporate bonds from UAE, KSA, Qatar, Kuwait, Bahrain, and Oman. This is the stable, low-volatility base.
2. **Cross-venue prediction-market straddle (satellite, \~1%)** — market-neutral straddles on event contracts, both sides booked, profiting from volatility rather than direction.

The sustainable design target is \~13% APR. Promotional campaign vaults (Wave 1, partner vaults) advertise higher fixed rates on small, time-bounded caps.

## Vault types

### `CheomaPreDeposit` — fixed-APY tokenized vault

* Fixed, immutable `apyBps` set at deploy.
* Deposits mint a non-transferable (soulbound) ERC-20 receipt.
* Principal tracked in per-deposit FIFO lots with a 90-day lock.
* Interest accrues deterministically on-chain (`block.timestamp`), no backend write, no front-run window.
* `setCap`, `setDepositsOpen`, `setWithdrawalsOpen` are admin-controlled.

### `PartnerPreDeposit` — bond-gated vault

* Extends the pre-deposit vault with a **partner-token bond gate**: to deposit, a user must hold ≥ `minGateUsd` worth of a partner token, escrowed into the vault until full withdrawal.
* Partner token price read from a 30-minute Uniswap V3 TWAP.
* Used for co-branded partner communities (e.g. GIWA Markets).

### `CheomaVault` — shares-based combined vault

* The original vault: deposits mint shares (no transferable token), operator-managed yield.
* Used for the testnet "Combined Vault" (99% sukuk / 1% straddle).

## Custody model

Every vault uses a two-key split:

* **`admin` (HOT)** — configuration only (`setCap`, open/close deposits & withdrawals). Cannot move funds.
* **`treasury` (COLD)** — the *only* role that can move funds out (`withdraw`, `emergencyWithdrawAll`). Held offline by the operator.


---

# 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://cheomayield.gitbook.io/cheomayield-docs/architecture.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.
