# Yield, Rates & Merkl Methodology

Morfa reports lending economics using transparent, standardized conventions so depositors can distinguish durable borrower-paid interest from temporary third-party token incentives.

## Two Separate Rate Components

Morfa **never** hides external token campaigns inside native interest or presents historical averages as fixed returns. Across `morfa.finance`, every market and vault separates two variable figures:

| Metric | Label in UI | Paid In | Compounding | Source |
| --- | --- | --- | --- | --- |
| **Native USDC Yield** | `Variable APY · 6h average` | **USDC** | Continuous (compounds automatically in `mfUSDC` share price or Morpho Blue supply shares) | Overcollateralized borrowers paying interest via Morpho Blue's `AdaptiveCurveIRM`. |
| **Merkl Token Incentives** | `Variable APR · 6h average` | **External reward tokens** | Simple APR (not auto-compounded; claimed separately on-chain) | External third-party Merkl campaigns; subject to change or termination without notice. |

:::info[Vault Fee Treatment in Displayed Rates]
For **Mode B (`Morfa Vault / mfUSDC`)**, the displayed 6-hour Native USDC APY reflects yield **net of the vault's `5%` performance fee** on earned native interest. For **Mode A (`Direct Wallet`)**, there is no ongoing performance fee on yield; a `5 bps` (`0.05%`) rebalance fee applies only when capital is moved between active markets.
:::

***

## How Morpho Blue Native Yield Works (`AdaptiveCurveIRM`)

Every market Morfa allocates into uses Morpho's immutable **`AdaptiveCurveIRM`** (`0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC`). Understanding its curve explains why utilization directly drives both APY and liquidity risk:

* **Target utilization (`90%`):** `AdaptiveCurveIRM` targets `90%` utilization (`totalBorrowAssets / totalSupplyAssets`).
* **Steep curve above target (`4×` steepness):** Below `90%`, the borrow rate scales smoothly downward toward `0.25×` the curve's target rate. Above `90%`, the borrow rate climbs sharply up to `4×` the target rate at `100%` utilization to incentivize borrower repayments and attract new supply.
* **Adaptive rate shifting over time:** Whenever utilization stays above `90%`, the entire target curve drifts upward over time; whenever utilization stays below `90%`, the target curve drifts downward.
* **Continuous compounding:** Instantaneous supply rate derives from borrow rate, utilization, and Morpho Blue's market fee (currently `0%` on standard markets), compounding continuously into APY:

```text
Supply Rate (per second) = Borrow Rate × Utilization × (1 - Market Fee)
Native Supply APY        = exp(Supply Rate × SecondsPerYear) - 1
```

### Why Post-Move Rate Impact Matters

Supplying fresh USDC into a Morpho Blue market lowers that market's utilization, which immediately reduces the market's supply rate along the `AdaptiveCurveIRM` curve. Conversely, withdrawing USDC raises utilization in the source market.

Instead of chasing headline pre-deposit APYs that vanish the moment capital arrives, Morfa models the **post-move utilization and resulting `AdaptiveCurveIRM` supply APY** for the exact capital amount being evaluated.

***

## How Morfa Computes 6-Hour Merkl APR

External incentive campaigns on Merkl can fluctuate hour to hour, pause temporarily, or emit noisy single-block spikes. To represent Merkl incentives truthfully and conservatively, Morfa computes a **coverage-weighted 6-hour hourly APR**:

1. **Hourly bucket aggregation:** Morfa queries Merkl v4 hourly APR snapshots over the recent 6-hour window and deduplicates records by timestamp.
2. **Untrusted contribution filtering:** Any hourly bucket flagged by Merkl as containing untrusted contributions is discarded rather than trusted blindly.
3. **Coverage weighting:** If an incentive campaign was only active for part of the 6-hour window (for example, a newly launched or paused campaign), the average is weighted by actual hourly coverage across the 6-hour period so brief bursts are not overstated as full-period APRs.

***

## Honest Unknown vs. Zero States

A common failure mode in DeFi interfaces is displaying `0.00%` when an upstream API times out, or showing stale cached APRs without warning. Morfa enforces strict state semantics:

* **`0.00%` (No Campaign):** Shown only when Merkl confirms there is no active reward campaign for that market or vault.
* **`Unavailable` / `(incomplete)` placeholder:** Shown whenever Morpho Core REST, Merkl v4, or RPC verification data is missing or degraded.
* **Fail-closed automation:** If required rate or reward data for a market is unavailable, the automated worker **never guesses `0` or uses stale placeholders**; it fails closed and skips automated moves involving unverified data.
