> 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). Agents can also search and read this documentation through its [MCP server](https://cheomayield.gitbook.io/cheomayield-docs/~gitbook/mcp).

# 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 fixed rate is 13% APR. Promotional campaign vaults (Wave 1, partner vaults) advertise higher fixed rates on small, time-bounded caps.

Yield is generated by the protocol's own sukuk holdings and its listed activities. Depositors do not own or hold the bonds — they hold a receipt token that is a claim against the protocol for principal plus the fixed yield.

## 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.

### `SonicPreDeposit` — Sonic-native pre-deposit vault

* Fork of `CheomaPreDeposit` with a **transferable** receipt and **two deposit assets** (USDC 6-dec + bnUSD 18-dec, credited at fixed 1:1).
* No per-deposit lock; withdrawals gated until GIWA mainnet (phase 2).

### `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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cheomayield.gitbook.io/cheomayield-docs/architecture.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
