Zest Protocol Docs
  • What is Zest Protocol? 🍊
  • Bitcoin as Prime Collateral
  • Points
  • Zest Protocol Borrow
    • Zest Protocol Borrow Overview
      • How to use Stacks Market to Earn Yield
      • How to use Stacks Market to Borrow Assets
        • Traditional Borrowing
        • E-Mode Borrowing
      • How to use Stacks Market as a Liquidator
      • Protocol Design
        • Oracles
        • Interest Rates Mechanism and Risk Management
  • Zest Protocol BTCz
    • Zest Protocol BTCz Overview
      • BTCz
      • BTCz User Guide
      • BTCz FAQ
    • Audits
  • Zest Protocol BORROW - CONTRACTS
    • Zest Borrow Contracts Overview
    • Reserve and Configuration
      • pool-0-reserve
      • pool-reserve-data
        • Isolation Mode
      • pool-vault
    • Pool Logic
      • pool-borrow
      • liquidation-manager
    • Audits
  • ZEST PROTOCOL BTCz - CONTRACTS
    • BTCz Contracts Overview
  • Other
    • Disclaimer
Powered by GitBook
On this page
  • What are oracles?
  • Oracle Integration
  1. Zest Protocol Borrow
  2. Zest Protocol Borrow Overview
  3. Protocol Design

Oracles

PreviousProtocol DesignNextInterest Rates Mechanism and Risk Management

Last updated 9 days ago

What are oracles?

Zest Protocol’s smart contracts require accurate pricing data for all assets supplied on the platform. To achieve this, the protocol relies on oracles to deliver real-time asset price feeds.

Zest integrates with the Pyth , an industry-leading oracle solution incubated by Jump Trading. Renowned for its reliability and precision, Pyth provides up-to-date token price data directly to Zest’s smart contracts.

When it comes to secure and robust pricing infrastructure, it doesn’t get stronger than Pyth.

Responsibilities of an oracle

  • Updates, stores, and distributes up-to-date token prices relevant to the system.

  • Ensures UI always displays the latest prices for listed assets on Zest

  • Make sure loan liquidations are accurate and efficient

Oracle Integration

Zest Protocol integrates with Pyth Oracle to source real-time token prices, leveraging its robust security architecture to ensure accurate pricing and reliable risk management.

The protocol’s smart contracts routinely fetch and update price data for all supported assets. This ensures that the UI reflects up-to-date information and that liquidations are executed smoothly, accurately, and efficiently.

To maintain price integrity, Zest Protocol incorporates several key safeguards:

– Staleness Protection: Price staleness occurs when an oracle returns outdated data. To mitigate this, Zest enforces a stricter staleness threshold than Pyth’s default, limiting the maximum allowed price age to 3 minutes.

– Confidence Intervals: Pyth price feeds include confidence intervals to express the potential variation in asset values. Zest applies a conservative approach when valuing assets and liabilities: • For assets, the lower bound of the 95% confidence interval is used • For liabilities, the upper bound of the 95% confidence interval is applied

This methodology ensures prudent, risk-aware pricing across the protocol.

oracle network