> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usexfg.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Interest and yield

> How HEAT CD yield is funded and distributed from protocol fees.

## Source of yield

HEAT CD interest comes from **protocol revenue**, not inflation.

**There are exactly two protocol earnings streams:**

| Stream | Rate | CD-relevant share |
| - | - | - |
| **Atomic swap fee** (SwapXFG TUI / DeXFG tab) | **1% initiation + 1% claim = 2%** per swap (`SWAP_FEE_RATE_BPS`) | **80%** → CD yield (`SWAP_FEE_CD_SHARE_PCT_V11`) |
| **Hearth swap fee** (on-chain Hearth DEX) | **1%** per trade (`HEARTH_FEE_BPS`) | 30% → CD accumulator at v11 (70% at v12); remainder is the maker rebate |

Atomic swap remainder at v11+: **20%** Bonus Vault, **0%** Treasury. Pre-v11 blocks settled 69 CD / 11 Bonus / 20 Treasury and replay that split.

More swap + Hearth volume → more yield. Quiet periods → lower yield. No fixed APY guarantee.

## Not protocol earnings

* **Mint premium** — 1% of each mint's burn (`HEAT_MINT_PREMIUM_BPS = 100`, v11+). A haircut inside the burn: the withheld premium XFG is the AuntPoL XFG leg and the premium HEAT it buys is the AuntPoL HEAT leg, not paid out.
* **CD creation fee** — 0.1% of the HEAT being deposited, charged in **XFG** to `FUEGO_DEV_FUND_ADDRESS`. Not CD yield, not treasury.

## Epoch distribution (conceptual)

```
your_interest ≈ (your_HEAT_CD / total_HEAT_CDs) × CD_fee_share_for_epoch
```

Exact formulas live in `Currency::calculateCdInterest` and blockchain fee-pool accounting. Loyalty / tier bonuses may adjust effective yield where enabled.

## Privacy

Principal and accrued interest remain under commitments. Observers see existence and maturity, not amounts.

## Estimating yield

```bash theme={"dark"}
curl -X POST http://127.0.0.1:28080/estimate_cd_yield \
  -H 'Content-Type: application/json' \
  -d '{
    "amount": 100000000,
    "creation_height": 0,
    "current_height": 0
  }'
```

Atomic units: **1 XFG/HEAT coin = 10,000,000** (`COIN`).

## Fee pool info

```bash theme={"dark"}
curl -X POST http://127.0.0.1:28080/get_fee_pool_info \
  -H 'Content-Type: application/json' \
  -d '{}'
```

## Claiming interest

Interest is claimed on **withdraw** or **rollover**, not as a separate “claim rewards” drip. The spend includes `claimedInterest` validated against the pool.

## Do not cite

* “0.3% LP fee funds CDs” — wrong
* “100% of swap fees to CDs” — wrong (80% at v11, 69% pre-v11)
* “69/11/20 is the current split” — outdated; it is pre-v11 replay only. v11+ is 80/20 with no treasury leg.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.