ENSHRINED ORACLES - ELI5 šŸ‘ļø šŸ‘‰Enshrined Oracles ensure accurate pricing without third-party risk, making THORChain more reliable and manipulation-resistant. The ELI5 flow ā¤µļø 1⃣Each THORNode fetches price data for specific markets from 5 exchanges. 2⃣The node calculates a volume-weighted average, giving more weight to prices from high-volume exchanges. 3⃣Outlier prices (those far off from the average) are removed to avoid errors or manipulation. 4⃣The node signs the final price and shares it with other nodes through their peer-to-peer network (gossip). 5⃣THORChain collects the prices and checks for a supermajority agreement across the network. 6⃣Once enough nodes agree, the price is updated on-chain every block. Note : nodes that don’t report data or report incorrect prices are penalised or slashed. THORChain is levelling up the base layer. What should come next at the protocol level? Drop your thoughts.šŸ”½
Work has kicked off on @THORChain new enshrined oracles. There will be no 3rd party dependencies. How does it work? 1) 5 providers are built with declared markets set in a config file, eg, BTCUSD. (Binance, Bybit, Coinbase, CryptoCom, Kraken) 2) Each of the 120 thornodes then volume-weight aggregates from the 5 providers (up to 4 can fail). Outliers are removed. 3) Each thornode signs, gossips on the enshrined bifrost P2P network, and collects, and inserts in TC. 4) TC determines super-majority consensus, updating the price. Nodes that do not observe *at all* for a market (ie, 5 providers are failing) are penalised. Nodes that don't observe the consensus price point (with small flex) are also slashed. 5) Prices updated every block. The only way to manipulate a market is to manipulate the price from at least 3 CEX at the same time. Because of the way nodes gossip the pricing information and *any node* can broadcast it to TC (not just the block producer), no node (not even the block producer) can manipulate a price in a direction they want. The block producer can only *withhold* new pricing information for *1* block. Thus the simple protection here is the app that ingests critical market information itself applies a small TWAP period into the price logic to ensure that the case a thornode doesn't update a price for 1 block has next to no advantage, due to the inertia of the price. Code here!
124
11.63K
The content on this page is provided by third parties. Unless otherwise stated, OKX is not the author of the cited article(s) and does not claim any copyright in the materials. The content is provided for informational purposes only and does not represent the views of OKX. It is not intended to be an endorsement of any kind and should not be considered investment advice or a solicitation to buy or sell digital assets. To the extent generative AI is utilized to provide summaries or other information, such AI generated content may be inaccurate or inconsistent. Please read the linked article for more details and information. OKX is not responsible for content hosted on third party sites. Digital asset holdings, including stablecoins and NFTs, involve a high degree of risk and can fluctuate greatly. You should carefully consider whether trading or holding digital assets is suitable for you in light of your financial condition.