RiskState on its Market account. The keeper writes it with each price push (update_risk_state_v2). The state says which price mint and redeem use and whether they are open at all. It no longer changes the fee or the price band. A separate staleness gate freezes mint and redeem when pushes stop, most often because the underlying market has closed.
On devnet, every market runs in
ProxyMode all the time, by design. ProxyMode means the program prices off the keeper-pushed user_twap_price instead of reading a Pyth account. Normal is the mainnet steady state, where mint and redeem read Pyth directly.The states
Stress blocks both sides because allow_mint_in_stress and allow_redeem_in_stress default to false, and both are false on all markets, 14 when checked on 10 Oct 2026 and the ten live markets now. The market authority can turn either on with configure_risk_fees. A mint in Stress is then also held to stress_mint_cap per transaction. That cap is 0 (no cap) on every market.
Fee and price band
The fee is the market’s posted fee in every state. Since 20 Nov 2026 both fee multipliers (proxy_fee_multiplier and stress_fee_multiplier) are 1× on every live market, so a posted 18 bps is charged as 18 bps. Before, in ProxyMode, it was charged as 27. The market authority can change them with configure_risk_fees.
The price band c that mint and redeem quote against does not depend on the state either. The band rule is set on all ten live markets, and under it c grows with the age of the price:
age is the chain time now minus the price’s own stamp, never below 0. The stamp is twap_updated_at for the keeper’s stored price, or the publish time of the oracle print when the program reads the oracle itself in Normal. oracle_confidence is read as one standard deviation of the price over horizon_secs. On devnet it is the keeper’s GJR-GARCH forecast for a 30-second bar. The market authority sets sigmas_x100 and horizon_secs with configure_price_band. All ten live markets use 2 standard deviations over 30 seconds. The band applies only where worst-case quoting is on (worst_case_config.enabled) and a confidence is posted. Quoting is on for all ten live markets (QQQ’s was switched on on 21 Nov 2026; until then QQQ quoted with no band).
A price read the second it was stamped has no band. At one horizon the band is sigmas standard deviations. At four horizons it is twice that. With 2 standard deviations over 30 s:
Why an age rule: a replay of ten weekdays of the keeper’s own prices found that the move while a price stood grew with the square root of the time it stood. At the same average width, the age rule covered 86% of those moves and the flat 1.5× band covered 73%. At 2 standard deviations it covers 91%. Currency and metal prices were about 52 s old when used, and stock prices about 16 s, measured while the currency markets were live.
If a market’s band rule is off (
band_sigmas_x100 and band_horizon_secs both 0), the old rule applies: oracle_confidence times the multiplier in worst_case_config, set with configure_worst_case_quoting. No live market is in that case. The formulas are on Mint and in NAV math.
Recovery now quotes exactly like ProxyMode. It stays a separate state, and the keeper still holds it for an hour after leaving Stress.
Transition rules
The on-chain transition matrix stops a compromised keeper from skipping recovery:Stress can only move to Recovery (or stay in Stress). A direct Stress → Normal or Stress → ProxyMode jump is rejected. The rule is unchanged, but it no longer protects a surcharge, because the fee multipliers are 1× and the band ignores the state. Every other transition is allowed: ProxyMode and Recovery move freely, and Normal can be entered from any state except Stress. Each push is also capped on price (a 25% move limit); see Oracle.
The staleness chain (off-hours behavior)
Risk states describe the oracle’s quality. A separate chain handles its absence, most often when the underlying market closes for the night or the weekend:twap_updated_at, so the freeze lasts exactly as long as the keeper withholds. While frozen, mint and redeem revert in every state except Normal, the bin books, which fill only while the price is stale outside Normal, trade against free-float books, and committed orders can’t settle; the keeper refunds each one about 5 s after its 180 s TTL. The first accepted push at reopen re-anchors NAV. The full chain is on Oracle.
If you only check one thing before you submit a mint or redeem, check market.twap_updated_at.
What you should do in each state
ProxyMode (devnet)
Operate normally. The fee is the posted fee, and the band on both legs grows with the age of the price. If you run a bot, remember that a mint or redeem needs a push no more than 300 s old.
Stress
Mint and redeem are blocked by default (MintNotAllowedInStress, RedeemNotAllowedInStress). Committed orders still fill while the keeper pushes prices, and the bin books open once the price is more than 300 s old. If you build a UI, say so:
“QQQ is in Stress mode. Minting and redeeming are paused; you can still trade QQQL and QQQS.”
Recovery
Mint and redeem reopen. They quote exactly as in ProxyMode.
Reading risk state
Normal, the price age is the authoritative “will my transaction go through” signal.
State during maintenance
For a hard halt, the market authority setsmarket.is_active = false with update_market. Mint and redeem then revert (MarketNotActive), and so does commit_swap (MarketInactive). pool_swap doesn’t check the flag, so the books still fill while the price is stale, and settle_swap refunds the orders of a paused market; after the TTL anyone can send cancel_swap to refund an order, whatever the state.
Read more
Oracle
The price source, the push pipeline and the staleness chain in full.
Solvency
What the program enforces independently of risk state.

