7. Minting & Redemption
Mint and redeem are the primary-market mechanics that connect the index token to the underlying basket. On the secondary market, index tokens simply trade against other tokens on a DEX; the protocol is not involved.
Terminology note: In some baskets the protocol can also handle in-kind vs cash exchanges. RealKey is designed to support both a collateral-based basket (hold the actual underlying tokens) and a wrapped/claim-based basket (hold a proof-of-custody claim) — see §13 Smart Contracts.
7.1 Minting
User deposits underlying assets
│
▼
Protocol computes the basket's NAV (weighted, per [§8])
│
▼
Protocol verifies the deposited set matches eligible weights / composition rules
│
▼
Protocol accepts/rebalances the assets into the vault
│
▼
Index tokens are minted to the user, pro-rata to their contribution
- Who can mint: any approved wallet (subject to vault-level restrictions, §18).
- What can be deposited: the underlying basket, or the same value in a permitted entry asset (e.g., a stablecoin used to buy the basket), depending on the index's configured input mode.
- How much is minted:
indexAmount = depositValue / NAVPerToken, whereNAVPerToken = NAV / totalSupply. - Reversal rules: for collateral-based baskets, the vault holds the exact underlying tokens, so a redeemed amount equals
requestedTokens × NAVPerTokenin underlying, subject to rounding.
7.2 Redemption
User submits index tokens
│
▼
Protocol computes the redemption value (NAV)
│
▼
Protocol returns underlying assets (or permitted exit asset)
│
▼
Index tokens are burned
- In-kind redemption: user receives the underlying basket in proportion.
- Cash/stable redemption (design option): user receives a stablecoin that the protocol uses to sell the underlying, subject to a fee.
- Minimum redeem: configurable per index (prevents dust/DoS).
- Cooldown/settlement (design option): for assets with T+N settlement, redemption may settle after settlement completes (see §9.9).
7.3 NAV Calculation
NAV_per_token = Σ (weight_i × price_i) / totalSupply_of_index_tokens
Equivalently: NAV = totalValueOfUnderlying / totalIndexTokensOutstanding.
See §8 NAV Architecture for the treatment of prices, staleness, and market hours.
7.4 Slippage & Market Impact
Primary market: mint/redeem occurs at NAV, so it has no DEX slippage by default. The protocol may apply a slippage buffer / NAV premium-discount when the input/output path requires a swap or when liquidity constraints apply.
Secondary market: index-token-to-index-token trades are subject to DEX slippage like any token.
7.5 Fees
| Fee | Where it applies |
|---|---|
| Management fee | Streamed continuously from NAV (see §12 Fees). |
| Transaction fee (mint/redeem) | On mint/redeem, e.g. 0.05–0.10% (illustrative). |
| Slippage buffer | On cash paths or when converting within a rebalance window. |
| Rebalancing costs | Borne by the basket (reduces NAV), not the caller (see §12.3). |
Fee values are illustrative — final parameters are governed (see §12 and Design Decisions).
7.6 Minimum Amounts & Rounding
- Minimum mint/redeem prevents dust attacks and excessive gas usage.
- Rounding is to the vault's token decimals; residual dust after redemption is donated to the vault (i.e., to remaining holders) or swept to a designated dust account, configurable per index.
7.7 Liquidity Constraints
- Primary minting may be capped per index (a "mint cap") to keep NAV integrity and avoid flood-in that distorts composition.
- Redemption is bounded by:
- available underlying in the vault,
- the redemption cooldown (if configured),
- and any issuer-level redemption limits (some tokenized assets have issuer-defined exit limits).
7.8 Failed Transactions
- If a deposit does not fully satisfy the basket (e.g., an asset is paused, frozen, or flagged), the transaction reverts and the user's other assets are returned / the partial state is rolled back.
- Unauthorized or below-minimum actions revert with a clear error.
- The vault uses receive-as-parameters / check-effects-interactions to avoid partial-state inconsistencies.
7.9 Pausing & Emergency Mechanisms
- The Emergency Controller (a multisig/gateway) can pause minting, redemption, or both (see §13.1, §25 Security).
- Pausing is a temporary measure to protect holders while an issue is assessed.
- During a pause, secondary trading of the index token is generally not protocol-controlled (those are on DEXs beyond the vault's control), but the vault stops mint/burn against NAV.
7.10 Primary vs Secondary Market
| Primary (mint/redeem) | Secondary (DEX trading) | |
|---|---|---|
| Price | NAV-based | Market price (premium/discount to NAV possible) |
| Slippage | None by default (NAV) | DEX slippage |
| Who | Protocol vault (self-serve) | Any DEX/router |
| Impact | Direct mint/redeem of underlying | No vault involvement |
| Best for | Block trades, rebalances, LPs | Retail, composability, fast access |
The primary/secondary split is a core design decision: RealKey's NAV-anchored primary market is what keeps the index token close to fair value, while the open secondary market makes it a usable DeFi primitive.
8. NAV Architecture
8.1 The NAV Equation
Σ ( price_i × amount_i )
NAV = ───────────────────────────
indexTokenSupply
price_iis the current valuation of underlying asset i from the oracle stack (see §9).amount_iis the quantity of asset i held by the vault.indexTokenSupplyis the total index tokens outstanding.
A NAVPerToken is NAV / supply. Whenever the protocol mints or redeems at NAV, it uses the latest
validated NAV, not the last DEX price.
8.2 Asset Prices & Oracle Sources
| Layer | Sources (proposed) |
|---|---|
| Primary | A Chainlink-style onchain price/NAV feed where available (see §9.3). |
| Issuer | If no feed exists, the issuer's published NAV signed/attested offchain and posted onchain. |
| Independent | A second independent valuation from a data provider or evaluation agent where available. |
| Fallback | TWAP of the secondary market, or last-validated NAV with a stale threshold. |
8.3 Stale Prices & Market Hours
RWA prices are not available 24/7 in the way crypto prices are:
| Asset type | Pricing window | Handling during closed hours |
|---|---|---|
| Tokenized treasury / money-market fund | Settles US business days, ~08:30–18:00 ET | Use last-validated NAV; mark as stale after a threshold; freeze mint/redeem if stale. |
| Tokenized gold / commodities | Admits to 24/7 trading, but underlying markets are not continuous | Use verified intraday feed if available; else last-validated NAV with deviations flagged. |
| Tokenized private credit / real estate | Valued periodically (e.g., monthly NAVs) | Strict stale control — mint/redeem against such assets only within fresh-NAV windows; otherwise require secondary-market disposal. |
Proposed design: the vault enforces a global "NAV freshness" gate: mint/redeem-at-NAV is only enabled when all constituent prices are fresh (within each asset's stale threshold). If any price is stale, mint/redeem at NAV is blocked and trading continues only on the secondary market. This is the core manipulation defense.
8.4 Off-chain RWA Pricing
- Issuer-reported NAV is the default for assets that lack onchain feeds.
- NAV is posted through a signed data path (offchain service signs the NAV; onchain verifies the signer and recency; see §9.7).
- The protocol carries the signer's refresh interval and the staleness gate above.
- A second opinion (independent valuation) is used to sanity-check large deviations.
8.5 NAV Update Frequency
- Continuous/streamed NAV for assets with onchain feeds or 24/7 markets (updates every block).
- Refresh NAV for issuer-reported assets (refreshed at the issuer's publication cadence, e.g., daily; used for intermediate NAV smoothing via interest accrual where documented).
- Smooth NAV (design option): daily accrual curves between publisher updates for stable-value assets, so the index token can be priced continuously without waiting for the next NAV print.
Note: Smooth NAV is a mechanism to interpolate between verified prints; the verified print is always authoritative. Smooth NAV must not let a stale print masquerade as fresh.
8.6 Liquidation Risk & Price Confidence
- Price confidence is a per-asset score (e.g., 0–100) from the oracle layer — higher when multiple independent sources agree and when the print is fresh.
- Mint/redeem-at-NAV requires a minimum confidence; otherwise the protocol falls back to secondary-market-priced swaps or pauses NAV-based minting.
- This prevents a single manipulated/quirked price from being propagated into a mint/redeem.
8.7 Manipulation & Stale-Price Attack Prevention
| Attack | Mitigation |
|---|---|
| Stale-price mint: buy index tokens at an old NAV that has since moved. | Freshness gate (all prices within threshold) before any mint/redeem at NAV. |
| Manipulated oracle: a single bad price moves NAV. | Medianization across sources; deviation thresholds trigger review; circuit breaker pauses mint/redeem. |
| Flash-loan NAV attack: borrow to swing one constituent's DEX price during a mint. | Use oracle/NAV feeds (not DEX spot) for NAV inputs; two-step mint or a NAV snapshot + delay; prohibit minting against a price that moves beyond deviation within the same block. |
| Loss-vs-rebalancing (LVR) / arbitrage: arbitrageurs rebalance the basket cheaply at the expense of holders. | Execute rebalances as batched/intent-based auctions with a minimum-delay/auction period rather than instantly against the ordinary NAV; see §10.6. |
| Fee avoidance: churn via mint/redeem to skip fees. | Fees charged on both mint and redeem (not net zero), plus anti-churn flags (e.g., minimum holding period or mint fee on early exit; design option). |
Bottom line: the NAV layer is the control plane of the protocol. Every action that creates or destroys index tokens against NAV is gated on freshness, confidence, and deviation checks.
9. Oracle Architecture
9.1 Why RWA Oracles Are Different
Crypto prices trade continuously and come from onchain DEXs. RWA prices are often:
- published on a timetable (daily NAV prints, weekly/monthly valuations),
- produced by a central authority (the issuer or an evaluation agent),
- and only sometimes represented onchain.
RealKey's oracle layer is therefore not a single price feed: it is a multi-layer valuation architecture that combines onchain feeds, issuer NAVs, and independent data, all governed by freshness and confidence rules.
9.2 Multi-Layer Oracle Stack
┌─────────────────────────────────────────────┐
│ Oracle Manager │
│ (consolidates, validates, gates NAV) │
└─────────────────────────────────────────────┘
│ │ │ │
┌───────────▼───┐ ┌──▼────────┐ ┌▼─────────┐ ┌─▼──────────┐
│ On-chain │ │ Issuer- │ │ Independent│ │ TWAP / │
│ price/NAV │ │ provided │ │ data │ │ secondary │
│ feeds │ │ NAV │ │ providers │ │ market │
└───────────────┘ └───────────┘ └───────────┘ └───────────┘
9.3 On-chain Price Feeds
- Use established oracle networks for assets that have feeds (e.g., Chainlink-style aggregate feeds for tokenized assets that trade continuously).
- NAV-value feeds (a distinct feed type) report the redemption/reference value of a tokenized asset rather than its 24/7 spot price.
- Where a feed exists, it is the primary source; issuer NAV becomes a cross-check.
Verified context: Robinhood Chain's official docs confirm the chain uses Chainlink for onchain price data, including a L2 Sequencer Uptime Feed. Chainlink's current RWA-focused data suite includes NAVLink Feeds (real-time NAV for tokenized funds/portfolios), SmartAUM Feeds (assets under management), Proof of Reserve Feeds, and institutional orchestration through Chainlink CRE (verifiable computing, secrets, time utilities, HTTP/cron/EVM triggers). These are live primitives, not aspirational research. RealKey proposes to use such established feeds where available, and to treat their absence as an asset-eligibility consideration rather than an impediment — the multi-layer stack is designed to function even where no feed exists. (Sources: docs.robinhood.com/chain/, Chainlink SmartData, Chainlink CRE, Chainlink L2 Sequencer Feeds.)
9.4 Issuer-Provided NAV
- The issuer (or its evaluation agent) signs a daily NAV, attesting to the reference value and the end-of-day cutoff.
- Onchain, the Oracle Manager verifies:
- signature authenticity,
- signer is the configured/whitelisted publisher,
- freshness (timestamp within the asset's staleness window),
- deviation (change vs previous print within tolerance).
- The signed NAV becomes the authoritative value for that asset until the next print.
9.5 Independent Data Providers
- A second source (an independent pricing service or a third-party evaluator) provides a cross-check NAV.
- The Oracle Manager computes median-of-sources where ≥2 sources exist; where sources disagree beyond a tolerance, the price is the median and a flag is raised.
- This caps the blast radius of a single bad print.
9.6 TWAP & Medianization
- TWAP (time-weighted average price) smooths short-term manipulation of the secondary market; used as a fallback price and as a sanity bound against NAV.
- Medianization over sources removes outlier prints.
- The Oracle Manager stores per-asset
{price, confidence, timestamp, sources}so the vault can gate on all three.
9.7 Signed Off-chain Data
- Pattern: an offchain keeper/issuer computes NAV, signs it with the publisher key; onchain verifies with
ecrecoverand the whitelisted publisher address. - Extension (proposed): use of verifiable offchain computation / verifiable NAV — e.g., Chainlink Functions or similar to fetch and post issuer NAVs (and DECO-style privacy-preserving proof of reserves where applicable), so offchain reports enter onchain without gatekeeping by the protocol team.
- Signed data carries an expiry; expiry + freshness gate = staleness defense.
9.8 Fallbacks & Circuit Breakers
| Event | Behavior |
|---|---|
| Single source stale | Use the second source; flag the vault to reduce weight-eligibility of the affected asset. |
| All sources stale / disagree > tolerance | Circuit breaker: freeze NAV-based mint/redeem; allow secondary trading; alert monitors. |
| Feed manipulated (deviation beyond bound) | Halt NAV-based actions; trigger emergency review. |
| Issuer NAV halt | Treat as stale; remove weight-eligibility; potentially trigger emergency removal (see §5.6). |
9.9 Handling Non-24/7 Assets
- Each asset declares a pricing calendar (markets/hours) and a stale threshold.
- During closed hours, the asset is priced at last valid NAV, explicitly marked stale-closed.
- The global freshness gate (see §8.3) blocks NAV-based mint/redeem while any constituent is past its threshold.
- Assets with weekly/monthly NAVs are supported mainly for long-hold indexes, and primary NAV minting is limited to fresh windows; otherwise redemption is in-kind with a longer settlement.