Cryptocurrency exchange Coinbase has released its own price oracle in an effort to improve the resiliency of the price feed process.
An oracle is a third-party price feed that provides real-world data to a decentralized network. Right now, almost all Open Finance (DeFi) platforms rely on price oracles to offer services like lending, margin trading, and derivatives. Uniswap and Kyber both have oracles that are widely used.
However, this price feed process has long been criticized for being maintained by a centralized entity. It also introduces risk since the smart contract cannot verify the accuracy of the data. In a recent high-profile case, DeFi lending protocol bZx, which utilizes Kyber’s price feed, suffered an oracle attack that resulted in a loss of 2,388 ETH.
Coinbase on Thursday launched Coinbase Oracle, a signed price feed allowing anyone to publish price data on-chain. The data is sourced from the Coinbase Pro API and get updated every minute. Users can leverage the Coinbase Oracle API to obtain signed price data for both BTC-USD and ETH-USD markets.
According to the announcement, getting data from an off-chain source like an exchange usually requires users to trust that the publisher is posting the right prices and that the signing key is uncompromised, which "historically has proven to be a difficult problem, especially when stakes are high."
With Coinbase Oracle, on the other hand, because the data is already signed by Coinbase's private key, users do not need to trust the publisher. The oracle utilizes the same key security infrastructure as the Coinbase exchange and anyone can verify the data with the Coinbase Price Oracle public key. The oracle also has a filtering mechanism that flags and rejects data points that deviate from either the asset's expected volatility or its last reported price.
Notably, a number of projects besides Coinbase have been trying to come up with more resilient price feed designs.
For example, Uniswap Version 2, set for launch in Q2, will introduce several changes to its price feed model to make it more costly for potential attackers to compromise the oracle.
tBTC, the bitcoin-pegged ERC-20 token to go live in late April, will implement a "third-party challenge system" to makes price feed more decentralized. Compound has also come up with an "Open Oracle System" to introduce more transparency into the process.
© 2023 The Block Crypto, Inc. All Rights Reserved. This article is provided for informational purposes only. It is not offered or intended to be used as legal, tax, investment, financial, or other advice.