xSynth
HomeAboutRoadmapTelegramTwitterWebsite
  • Xsynth protocol
    • Welcome to xSynth
    • The xSynth Protocol
      • xSynth Token (XSYN)
      • The Role of Stakers
      • Oracles
      • xSynth Litepaper
    • Synthetic Assets
      • Perpetual Futures
      • Spot Synths
  • staking
    • Current Protocol Parameters
    • Staking Guide
      • Steps for Staking XSYN
      • Steps for Unstaking XSYN
      • Steps for Claiming Rewards
      • Collateralization Ratio
      • Debt, Minting, and Burning Explained
      • Escrow and Vesting
      • Liquidations
    • Staking FAQ
  • dao
    • Governance Framework
      • xSynth Improvement Proposals (XIPs)
      • xSynth Configuration Change Proposal (XCCPs)
      • Swiss Council
      • Treasury Council
      • Grants Council
      • Ambassador Council
      • Core Contributors
      • Core Contributor Committee
      • Staker
    • Elections and Voting
Powered by GitBook
On this page
  • What are oracles?
  • How does xSynth utilize oracles?
  • xSynth Oracle Contracts
  • Constituent Contracts
  1. Xsynth protocol
  2. The xSynth Protocol

Oracles

PreviousThe Role of StakersNextxSynth Litepaper

Last updated 11 months ago

What are oracles?

xSynth utilizes the decentralized Chainlink & Pyth , which provides up-to-date token prices data to smart contracts on Polygon and Ethereum Mainnet.

Responsibilities of an oracle

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

  • Disables exchange functionality if prices are not fresh.

  • Provides functionality to perform exchange rate conversions between synth flavors.

How does xSynth utilize oracles?

The xSynth protocol utilizes its respective ExchangeRates contract to retrieve frequently stored price updates.

xSynth Oracle Contracts

At xSynth, the on-chain manifestation of the oracle is the contract, which stores prices that are frequently updated by the oracle. The primary user of these prices is the contract, which needs them to calculate debt allocations when issuing and burning synths, and to determine the correct quantity of synths when performing an exchange of one flavour for another.

It is also used by some other contracts, such as the and contracts.

Constituent Contracts

Contract

Description

Oracle

ExchangeRates

The xSynth exchange rates contract which receives token prices from the oracle, and supplies them to all contracts that need it.

The oracle is responsible for collecting and updating all token prices known to the xSynth system. Although it is not a contract, it controls a known Ethereum address from which price updates are sent to the contract.

oracle network
oracle network
ExchangeRates
Synthetix
Depot
PurgeableSynth
ExchangeRates