Aster
  • OVERVIEW
    • What is Aster?
      • How to connect your wallet
      • Our smart contracts
  • Rewards Hub
  • PRODUCT
    • Product releases
    • AsterEX Pro
      • Pro fees
      • Margin
        • Calculating max transfers in Cross and Isolated margin
      • Mark price
      • Liquidations
      • Funding rate
      • Single asset mode & Multi-asset mode
      • Order types
      • Trailing Stop Order
      • Open Cost calculation
      • Grid Trading
        • Set-up Your Grid Trading Strategy
        • Futures Grid Trading Auto Parameters Guide
        • Long/Short Grid Trading introduction
      • VIP & MM program
        • Market maker requirement
      • ADL
      • Deposit/Withdraw Guide
      • Referral program
      • API
        • How to create API
        • API document
      • Delisting of a perps contract
    • AsterEX Simple
      • Leverage
      • Price oracles
      • Fees & slippage
      • Degen Trading Mode
      • Dumb mode
      • Manage your positions
      • Order types
      • Interact with the contract directly
    • Aster Earn
      • Mint asBNB
      • Mint asCAKE
      • Mint asUSDF
      • Mint asBTC
      • Aster ALP
        • How to mint ALP?
        • How to burn ALP?
        • ALP Fees
      • Ecosystem
        • PancakeSwap
          • LP on PancakeSwap
        • Pendle
          • asUSDF on Pendle
          • asBNB on Pendle
          • USDF on Pendle
          • How to calculate Au points for LP and YT
          • How to transfer liquidity to new pool
        • Tranchess
        • Restaking
        • Yield Strategies
    • USDF Stablecoin
      • Situating USDF in the Stablecoin Landscape
      • How USDF Works
      • Maintaining the Peg
      • Fund Custody & Risk Management
      • FAQs
      • Tutorials
    • AsterLayer
    • Help
  • Stage 1: Spectra
    • Aster Spectra: Stage 1
    • Mint to Earn Au
    • Au Trader Boost
    • Trade like a Pro, Earn like a Pro
    • Treasure Boost Campaign
    • Referral Bonus & Team Boosts
  • Brand & Community
    • Aster Media Kit
    • Official links
  • About us
    • Audit Reports
    • Aster – Terms and Conditions
    • Aster – Privacy Notice
Powered by GitBook
On this page
  • Data sources
  • How prices are fetched and verified
  • Protective measures
  1. PRODUCT
  2. AsterEX Simple

Price oracles

For Simple mode

PreviousLeverageNextFees & slippage

Last updated 27 days ago

utilizes a robust and decentralized oracle system to provide accurate and real-time price feeds for trading pairs. This system aggregates data from multiple reputable sources to ensure price integrity and protect users from anomalies.

Data sources

  • Primary source: Pyth Oracle’s price feed serves as the anchor

  • Verification: Prices are cross-verified with Chainlink’s price feed

  • Fallback: For trading pairs not supported by Pyth Oracle, Binance Oracle is used as a backup

If Pyth Oracle’s price deviates by more than 1% from Chainlink’s price, a circuit breaker is triggered, causing the transaction to fail.

All trading pairs on Simple mode use the oracle price of the listed assets as the index price.

How prices are fetched and verified

  1. On-chain request: When a trader initiates a transaction, a request for the latest price is simultaneously triggered.

  2. Off-chain aggregation: Pyth Oracle retrieves the latest price and updates the index-weighted average price feed.

  3. On-chain verification: Simple Mode’s smart contracts compare Pyth’s price with Chainlink’s feed to verify data accuracy.

  4. Transaction completion: Once verification is successful, the trader’s transaction is executed.

This decentralized validation process ensures there is no single point of failure and typically completes within two blocks. Additional safeguards are in place to mitigate issues arising from market disruptions or connectivity problems.

Protective measures

  • Single source deviation: If an exchange’s last price deviates more than 5% from the median price of all sources, its weight is set to zero in calculations.

  • Multiple sources deviation: If multiple exchanges show deviations greater than 5%, the median price of all sources is used as the index value instead of a weighted average.

  • Connectivity issues:

    • If an exchange’s data feed is inaccessible but had trades updated in the last 10 seconds, the latest available price data is used for index calculation.

    • If no trade data has been updated for 10 seconds, the exchange’s weight is set to zero in the weighted average calculation.

Aster Simple