DeFi

Confidence Interval (Oracle)

A measure of uncertainty published alongside each Pyth price feed, representing the range within which the true price likely falls. If SOL/USD is $150 with a confidence interval of $0.10, the price is between $149.90 and $150.10 with high probability. DeFi protocols should use confidence intervals to widen spreads or pause operations during periods of high uncertainty to avoid acting on imprecise prices.

IDconfidence-interval

Plain meaning

Start with the shortest useful explanation before going deeper.

A measure of uncertainty published alongside each Pyth price feed, representing the range within which the true price likely falls. If SOL/USD is $150 with a confidence interval of $0.10, the price is between $149.90 and $150.10 with high probability. DeFi protocols should use confidence intervals to widen spreads or pause operations during periods of high uncertainty to avoid acting on imprecise prices.

Mental model

Use the quick analogy first so the term is easier to reason about when you meet it in code, docs, or prompts.

Think of it as a market mechanic used to price, route, or move capital through liquidity apps.

Technical context

Place the term inside its Solana layer so the definition is easier to reason about.

AMMs, routing, liquidity, lending, and trading infrastructure.

Why builders care

Turn the term from vocabulary into something operational for product and engineering work.

This term unlocks adjacent concepts quickly, so it works best when you treat it as a junction instead of an isolated definition.

AI handoff

AI handoff

Use this compact block when you want to give an agent or assistant grounded context without dumping the entire page.

Confidence Interval (Oracle) (confidence-interval)
Category: DeFi
Definition: A measure of uncertainty published alongside each Pyth price feed, representing the range within which the true price likely falls. If SOL/USD is $150 with a confidence interval of $0.10, the price is between $149.90 and $150.10 with high probability. DeFi protocols should use confidence intervals to widen spreads or pause operations during periods of high uncertainty to avoid acting on imprecise prices.
Related: Pyth Network, Price Feed, Oracle
Glossary Copilot

Ask grounded Solana questions without leaving the glossary.

Use glossary context, relationships, mental models, and builder paths to get structured answers instead of generic chat output.

Explain this code

Optional: paste Anchor, Solana, or Rust code so the Copilot can map primitives back to glossary terms.

Ask a glossary-grounded question

Ask a glossary-grounded question

The Copilot will answer using the current term, related concepts, mental models, and the surrounding glossary graph.

Concept graph

See the term as part of a network, not a dead-end definition.

These branches show which concepts this term touches directly and what sits one layer beyond them.

Branch

Pyth Network

A high-frequency oracle network publishing price feeds for crypto, equities, commodities, and FX. Pyth aggregates data from 90+ first-party publishers (market makers, exchanges) and updates prices every 400ms on Solana. Each price feed includes a price, confidence interval, and exponential moving average. Pyth uses a pull model with Hermes for cross-chain delivery.

Branch

Price Feed

An on-chain account maintained by an oracle (Pyth or Switchboard) containing the current price, confidence interval, and timestamp for an asset pair (e.g., SOL/USD). DeFi programs read price feeds to calculate collateral values, trigger liquidations, and determine swap rates. Feed staleness must be checked to prevent using outdated prices.

Branch

Oracle

A service that provides external data (prices, randomness) to on-chain programs. DeFi protocols rely on oracles for accurate price feeds to calculate collateral ratios, liquidation thresholds, and swap rates. Solana's primary oracles are Pyth (high-frequency price feeds) and Switchboard (general-purpose data feeds and VRF).

Next concepts to explore

Keep the learning chain moving instead of stopping at one definition.

These are the next concepts worth opening if you want this term to make more sense inside a real Solana workflow.

DeFi

Pyth Network

A high-frequency oracle network publishing price feeds for crypto, equities, commodities, and FX. Pyth aggregates data from 90+ first-party publishers (market makers, exchanges) and updates prices every 400ms on Solana. Each price feed includes a price, confidence interval, and exponential moving average. Pyth uses a pull model with Hermes for cross-chain delivery.

DeFi

Price Feed

An on-chain account maintained by an oracle (Pyth or Switchboard) containing the current price, confidence interval, and timestamp for an asset pair (e.g., SOL/USD). DeFi programs read price feeds to calculate collateral values, trigger liquidations, and determine swap rates. Feed staleness must be checked to prevent using outdated prices.

DeFi

Oracle

A service that provides external data (prices, randomness) to on-chain programs. DeFi protocols rely on oracles for accurate price feeds to calculate collateral ratios, liquidation thresholds, and swap rates. Solana's primary oracles are Pyth (high-frequency price feeds) and Switchboard (general-purpose data feeds and VRF).

DeFi

Constant Product Formula (x*y=k)

The AMM pricing formula x * y = k, where x and y are the reserve quantities of two tokens and k is a constant. As one token is bought, its reserve decreases and price increases, following a hyperbolic curve. This ensures the pool never runs out of either token but causes increasing slippage for larger trades.

Commonly confused with

Terms nearby in vocabulary, acronym, or conceptual neighborhood.

These entries are easy to mix up when you are reading quickly, prompting an LLM, or onboarding into a new layer of Solana.

DeFioracle

Oracle

A service that provides external data (prices, randomness) to on-chain programs. DeFi protocols rely on oracles for accurate price feeds to calculate collateral ratios, liquidation thresholds, and swap rates. Solana's primary oracles are Pyth (high-frequency price feeds) and Switchboard (general-purpose data feeds and VRF).

DeFioracle-staleness

Oracle Staleness

The condition where an oracle price feed has not been updated within an acceptable time window, making the price data potentially unreliable. Stale prices can lead to incorrect liquidations, mispriced trades, or exploitable arbitrage. Solana DeFi protocols must check the timestamp of oracle updates and reject or pause operations when prices exceed a staleness threshold (e.g., 30 seconds for Pyth feeds).

DeFipull-oracle-model

Pull Oracle Model

An oracle design where price updates are fetched on-demand by the consuming protocol rather than pushed to on-chain accounts at fixed intervals. Pyth pioneered the pull model on Solana: prices are published to an off-chain service (Hermes) and only written on-chain when a transaction needs them. This reduces costs since unused price updates are never posted, but requires transactions to include price update instructions.

Related terms

Follow the concepts that give this term its actual context.

Glossary entries become useful when they are connected. These links are the shortest path to adjacent ideas.

DeFipyth

Pyth Network

A high-frequency oracle network publishing price feeds for crypto, equities, commodities, and FX. Pyth aggregates data from 90+ first-party publishers (market makers, exchanges) and updates prices every 400ms on Solana. Each price feed includes a price, confidence interval, and exponential moving average. Pyth uses a pull model with Hermes for cross-chain delivery.

DeFiprice-feed

Price Feed

An on-chain account maintained by an oracle (Pyth or Switchboard) containing the current price, confidence interval, and timestamp for an asset pair (e.g., SOL/USD). DeFi programs read price feeds to calculate collateral values, trigger liquidations, and determine swap rates. Feed staleness must be checked to prevent using outdated prices.

DeFioracle

Oracle

A service that provides external data (prices, randomness) to on-chain programs. DeFi protocols rely on oracles for accurate price feeds to calculate collateral ratios, liquidation thresholds, and swap rates. Solana's primary oracles are Pyth (high-frequency price feeds) and Switchboard (general-purpose data feeds and VRF).

More in category

Stay in the same layer and keep building context.

These entries live beside the current term and help the page feel like part of a larger knowledge graph instead of a dead end.

DeFi

AMM (Automated Market Maker)

A protocol that enables token swaps using algorithmic pricing against pooled liquidity instead of matching individual buyers and sellers. AMMs use mathematical formulas (typically constant product x*y=k) to determine prices based on the ratio of tokens in a liquidity pool. On Solana, major AMMs include Raydium, Orca, and Meteora.

DeFi

CLMM (Concentrated Liquidity Market Maker)

An AMM design where liquidity providers concentrate their capital within specific price ranges instead of across the full 0-to-infinity range. CLMMs dramatically improve capital efficiency—LPs earn more fees per dollar deposited within their active range. If the price moves outside the range, the position becomes inactive. Orca Whirlpools and Raydium CLMM are leading implementations on Solana.

DeFi

Liquidity Pool

A smart-contract-held reserve of two or more tokens that enables trading via an AMM. Users deposit token pairs in specified ratios to become liquidity providers and earn trading fees. Pools are identified by their token pair and fee tier. Pool depth (total value locked) determines price impact for trades.

DeFi

LP Token

A token issued to liquidity providers representing their proportional share of a pool's reserves and accrued fees. LP tokens can be burned to withdraw the underlying assets. The value of LP tokens changes as the pool's token ratios shift and fees accumulate. LP tokens are often stakeable in yield farming programs for additional rewards.