Multi-level Distributed Oracle Machine System: Enhancing Price Data Reliability and Flexibility

robot
Abstract generation in progress

Design and Implementation of Distributed Price Oracle Machine System

To avoid single points of failure, some Oracle Machine services adopt a distributed design. Taking the service that provides the BTC to USD price as an example, it aggregates data from 31 independent price Oracle Machines to provide information to users.

The contract of this aggregator can be viewed on the blockchain explorer. By calling specific methods in the contract, all off-chain Oracle Machine information contained in the aggregator can be obtained. Each off-chain Oracle Machine can provide price data in response to user requests in the aggregator by calling designated methods. These off-chain Oracle Machines are usually external accounts that not only provide data for the BTC/USD aggregator but may also provide price information for other aggregators such as ETH/USD.

Oracle Machine详解系列之 Chainlink(下)

The processing flow of on-chain contracts includes the following steps:

  1. Read the current contract status and perform a series of checks.
  2. Make necessary preparations
  3. Verify each signature data, checking the role of the signer and the uniqueness of the signature.
  4. Sort the observations, select the median and perform threshold checks.
  5. Record the results of this Oracle Machine and conduct final verification.

The final step of verification usually calls methods from other contracts to compare whether the price deviations given by different Oracle Machines are within an acceptable range.

Oracle Machine Detailed Series on Chainlink (Part 2)

Feed Registry System

To further simplify usage and improve flexibility, some Oracle Machine services have introduced the concept of Feed Registry. This can be understood as an aggregator of multiple price information sources, allowing users to directly read price data through the Feed Registry without having to set up each token's price information source themselves.

Oracle Machine Detailed Series - Chainlink (Part 2)

Multi-level Data Aggregation Mechanism

High-quality price Oracle Machines typically employ a multi-level data aggregation mechanism, mainly consisting of three levels:

  1. Data Source Aggregation: Collect raw price data from major trading platforms and perform weighted calculations.

  2. Node operator aggregation: Each node obtains prices from multiple independent data sources and takes the median to exclude outliers.

  3. Oracle Machine network aggregation: After a preset number of nodes respond, the median of all data is taken again.

The final price updates usually need to meet specific trigger conditions, such as deviation thresholds or heartbeat thresholds. While this mechanism increases security, it also results in relatively slow price updates, making it mainly suitable for application scenarios that are not very sensitive to price updates.

Oracle Machine Detailed Series: Chainlink (Part 2)

View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • 9
  • Share
Comment
0/400
LightningClickervip
· 07-13 07:33
The next market capitalization of 100 billion single point of failure!
View OriginalReply0
ArbitrageBotvip
· 07-13 01:09
What's the use of being slow? You can't seize market opportunities at all.
View OriginalReply0
ApeShotFirstvip
· 07-11 18:41
Rely on Oracle Machine? Or is on-chain T0 the best?
View OriginalReply0
AlphaBrainvip
· 07-10 09:51
The Oracle Machine is not decentralized enough.
View OriginalReply0
LiquidatorFlashvip
· 07-10 08:15
Multiple traps for prophecy triggering, risk control has become more reliable.
View OriginalReply0
GasSavingMastervip
· 07-10 08:14
This is as slow as a turtle crawling. Where's the agility?
View OriginalReply0
NFTRegretDiaryvip
· 07-10 08:13
If the Oracle Machine goes down, who is responsible for compensation?
View OriginalReply0
SerumSqueezervip
· 07-10 08:09
bull beer is improved well, safety first
View OriginalReply0
defi_detectivevip
· 07-10 07:58
Do we still need that level data?
View OriginalReply0
View More
Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate app
Community
English
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)