Introducing Pyth on Fogo

Pyth Overview

In decentralized finance, protocols need accurate and up-to-date market prices to work safely.
Pyth brings first-party market data on-chain with sub-second latency and a large network of publishers and chains.

Current Pyth Network Snapshot

  • $67B total volume relayed
  • 125 publishers onboarded
  • 2,150 price feeds (active + coming soon)
  • 101 active chains
  • Trusted by 250+ protocols

What is Pyth?

Pyth is an oracle network focused on low-latency, high-fidelity market data for smart contracts.

You get:

  • First-party signed prices from exchanges and trading firms
  • Aggregate price + confidence interval per asset
  • Consistent feeds across many chains
  • A pull-based update model for cost control

How it Works

  • Publishers send signed prices to the Pythnet appchain.
  • Pyth aggregates and verifies them
  • Protocols pull the latest update when needed (~400ms core cadence)
  • Prices + confidence intervals are written on-chain

Why pull matters: Fetch data only when your logic needs it, cut gas costs,
and align oracle updates with liquidation and risk checks.

Pyth Lazer

Lazer is Pyth’s high-performance channel for latency-sensitive apps like CLOBs and perps.

  • ≈1ms real-time channel
  • Fixed-rate channels at 50ms & 200ms
  • Customizable payloads: bid/ask, market depth, more
  • Lighter proofs (~100 bytes) for faster verification
  • Specialized, permissioned integration for institutions

Core vs Lazer: Core offers decentralized ~400ms updates with confidence,
while Lazer provides ultra-low latency, configurable data.

Pull vs. Push Oracles

Pull Oracles (Pyth’s design)

  • Updates are requested on-demand.
  • Reduces unnecessary on-chain transactions → lower gas costs.
  • Supports high-frequency updates (~400ms).
  • Provides fresher, more accurate prices during congestion.
  • Ideal for arbitrage and speed-sensitive trading.

Push Oracles (Traditional)

  • Continuous updates at fixed intervals, even if not needed.
  • Higher gas costs due to constant writes.
  • More latency under network congestion.
  • Limited scalability during high activity.
  • Less reliable in volatile markets.

Express Relay (PER)

Express Relay is a priority-auction system that eliminates MEV and links protocols to searchers & liquidators.

  • Protocols define valuable operations
  • Searchers bid off-chain
  • Winning bids forwarded on-chain
  • Revenue shared with protocols

Case study – xStocks RFQ

Tokenized equities like AAPLx, TSLAx, METAx trade 24/7 on-chain.
With Pyth Express Relay, market makers quote exact RFQ prices, avoiding slippage and front-running.
Live on Kamino, Titan Exchange, and Jupiter.

Entropy (Randomness)

Entropy provides cryptographically secure, on-chain randomness with real-time generation & multi-chain support.

  • Fair NFT mints & raffles
  • Games with responsive randomness
  • Governance draws & randomized selections

Why Pyth on Fogo?

Traditional chains struggle with the latency and throughput needed for serious markets.
Fogo’s high-performance design pairs perfectly with Pyth’s stack.

  • Sub-second data and ms-level Lazer channels match Fogo’s speed
  • Confidence intervals improve liquidation safety
  • Express Relay recaptures MEV for protocols
  • Entropy unlocks fair games and consumer apps
  • Large publisher & asset coverage from day one

In Summary

Pyth provides the data backbone for Fogo’s DeFi stack:

  • Core feeds for accurate pricing
  • Lazer for ultra-low latency trading
  • Express Relay for fair execution & MEV control
  • Entropy for secure randomness

Lesson written by  @smartcoded2011

Final Quiz

Please select or write the correct answer.

What is the main role of Pyth in DeFi?