DEFI Convoy: The Importance of Oracles

DEFI Convoy: The Importance of Oracles

Before exploring some emerging solutions, I will first analyze some popular DeFi projects and the oracle systems they are using, such as their pros and cons, and then give some suggestions on how to build a fair oracle/data retrieval ecosystem.

Traditional financial systems require intermediaries, which result in single points of failure. They are prone to corruption, fraud, security incidents, etc. Smart contracts and decentralized networks give us the opportunity to rebuild these systems, which are accessible to ordinary people and can improve traditional financial products built on these systems, especially lending.

DeFi provides us with a new, transparent financial system that does not rely on intermediaries

A common theme among DeFi products is its hybrid protocols, which take volatility out of the equation while providing the benefits of a decentralized network. This is achieved by combining crypto assets with traditional assets, especially those tied to a USD peg.

MakerDao is the most well-known example, which uses a hybrid system to maintain an average 1DAI=$1 ratio and requires mining DAI (a token worth $1) by locking up volatile assets. There are other hybrid systems that use concepts like "supply elasticity", such as Ampleforth or the Diameter Base Protocol, which sounds a bit old now. In response to changes in demand, they adjust the circulating supply through a Rebase mechanism.

The purpose of using a rebase mechanism is to keep prices stable by constantly balancing demand with circulating supply, but this mechanism doesn’t work well when the market is in a frenzy, as we have recently experienced. The price of Ampleforth soared to an all-time high, and due to a bunch of aggressive rebasing measures (i.e. airdropping tokens to holders), once the price started to fall, it fell fast and hard.

 Oracles are the foundation of the entire ecosystem because all applications rely on accurate data.

Compound is another DeFi product that allows assets to be borrowed and loaned through collateral, with interest rates adjusting based on borrower/lender demand.

The Compound network is governed by COMP holders, who can vote on the future of the network through a proposal system - the more tokens held, the more weight the vote has. This will have interesting consequences as the number of administrators changes.

It sometimes calculates an average based on multiple oracle reports, and if there are not so many administrators providing data, it may calculate an incorrect price, which will have a serious impact on a large number of borrowers/lenders.

As DeFi products rise, ChainLink is undoubtedly the winner

Over the past 18 months, the use of oracles has grown rapidly, and some of the most influential DeFi teams are using them, including Kyber Network, Fulcrum, Opium Network, Synthetix, etc. A key advantage of Chainlink is that it references multiple oracles to derive prices. Bzrx recently had an accident because it only relied on price data provided by Kyber Network. This means that a sudden drop in Kyber will cause Bzrx to liquidate its positions. With Chainlink, there is a decentralized price data supply to avoid this from happening.

Nonetheless, according to a research paper published by Bowen Liu and Pawel Szalachowski of the Singapore University of Technology and Design, Synthetix’s ETH/USD oracle data has a regular price deviation of an average of 2%.

While this is a high bar for now, we must work towards more accurate price information and more dynamic systems, which is certainly what Chainlink is doing, but wouldn’t it be better to have healthy competition?

Currently, most price feed oracles often deviate from the actual data.

A few percentage points of deviation may not seem like much, but when we build a financial system that provides information about lending, liquidation events, and interest rates, we need accurate data.

The infamous “flash loans” or quick liquidations in DeFi products are often associated with price oracles

If I have a DeFi product and I pull its price to, say, the price of BAT on an exchange, and people are borrowing this DeFi product at the price of BAT, then it only takes one big sell on that exchange to liquidate any leveraged BAT position.

Using multiple data streams and aggregators can greatly reduce the risk of troublemakers who have the ability to drive markets quickly.

There are some new competitors in the DeFi oracle space

DIA is known for building an ecosystem that provides open financial data for smart contracts. It provides multiple price streams and obtains data from multiple sources, including exchanges, other blockchains, European Central Bank foreign exchange rates, ITINs (International Token Identification Numbers), SONIA, SOFR & €STR Overnight Rates (Secured Overnight Financing Rates for US Dollars and Overnight Risk-Free Rates for Euros).

They aim to be the "Wikipedia of financial data", which means that the community can vote on data in an open source form, rather than having it decided by a central committee. DIA does not manage, obtain, or verify data internally, instead, these activities are carried out by its holders through cryptoeconomic incentives and staking its governance tokens. This design greatly improves transparency and is a bottom-up system for cleaning, aggregating, and delivering financial data to APIs and Ethereum's oracle system.

The database can handle a variety of different data streams, from high-frequency trading APIs to data that never changes and is inaccessible in high-performance key-value databases.

The interesting thing about DIA is that it supports a variety of traditional financial data and crypto market data at the same time, and can customize exclusive price data according to user requirements.

The aforementioned paper by Bowen Liu and Pawal Szalachowski points out that the oracle systems used by applications like Synthetix and Compound lack transparency, which makes it difficult to detect improper operations. When asked directly in a CryptoDiffer AMA what advantages DIA has compared to other competitors, Paul Claudius of the DIA data team replied:

“We are not a new database that provides complex price models. Instead, we focus on a Wikipedia-style approach where everyone can participate and comment on the work of the community for the sake of community development. We issue our governance token as an incentive for data providers and community members who dig deep into data sources.”

In the coming months, it will become a community-run DAO, and our team (or the wider community) can then start creating DeFi products based on this data ecosystem, and the price feeds they use will be regularly audited by the community.

But what makes a good oracle? Here are some evaluation criteria

I think it’s time to talk about “what a good oracle is” and “how we can build a good data system”. The factors listed here are not all, but they can help readers better understand which direction we should go.

Governance

  • Internal vs. External: Is this oracle built specifically for a protocol/application and therefore governed by that community? Or is it readily available to any third party?

  • Calculation choice: Who chooses the methodology for calculating oracle values? The calculation models of oracles are usually different. According to my previous research, it is risky for administrators or ticket hoarders to decide the oracle logic. Can users choose multiple on-chain price streams and then aggregate them for use?

  • Oracle Changes: How are changes to the oracles themselves decided? This includes the release of new contracts, changes in the methodology for aggregating data, and sometimes the removal of some data sources entirely. Some oracles require "administrators" to make decisions. Is this fair?

  • Data Source: Is the oracle’s documentation transparent enough that users can easily retrieve the source of the oracle’s data? Sometimes this information can be found in the white paper, but real-time data is often missing.

  • Methodology: Is the exact methodology for calculations, data searches, and data aggregation easily retrievable and documented? Often this information is vague.

transparency

  • Data Source: Is the oracle’s documentation transparent enough that users can easily retrieve the source of the oracle’s data? Sometimes this information can be found in the white paper, but real-time data is often missing.

  • Methodology: Is the exact methodology for calculations, data searches, and data aggregation easily retrievable and documented? Often this information is vague.

Data Operations

  • Data update frequency: How often is the oracle data updated? The market changes very quickly.

  • Data latency: What is the delay between the data point being measured and its incorporation into the data stream?

  • License tracking: Is information available about the license of the underlying raw data? (e.g., price data from an exchange)

  • Gas Model: Who pays the gas fees to keep the oracle running?

Although there are many factors to consider, the above are good reference directions when you are choosing an oracle for your project. The oracle ecosystem deserves our continued attention, because with the rise of DeFi applications, oracles will be subject to more scrutiny. After all, these DeFi applications require accurate and reliable data. Otherwise, people may lose a lot.

But I would encourage people to really understand the impact that oracles have and understand which oracles the applications they are using rely on for data.


<<:  EIP-1559 could make Ethereum deflationary - Money supply issues intensify discussion

>>:  What to do if you miss DeFi? Polkadot and Astro Boy may drive cross-chain to become the next outlet

Recommend

What is a lion nose? Is a lion nose good for appearance?

In physiognomy, there is a saying that "appe...

Mole Encyclopedia: Lucky Moles on Women

Mole Encyclopedia: Lucky Moles on Women Everyone ...

BTC falls below $40,000, famous investor says US stock market has a super bubble

At 10:00 on January 21, the market showed that BT...

What is the fate of a woman with a mole on her chin?

If there is a mole on the chin, then it also depe...

What does a mole on the right shoulder mean?

Moles are distributed all over our body, and thei...

GeekCoin – A new CPU algorithm based on Bitcoin and Dash

About GEEKCASH Name: GeekCash Algorithm: GEEK Dif...

How to be a “poisonous tongue”

Speaking of Jin Xing, everyone knows that she is ...

Which moles on the face cannot be removed?

Perhaps many people think that a mole is just a s...

How to read the face and the fate of women

A woman's fate is actually reflected to a lar...

How is your fortune from the mole?

When fortune tellers look at moles, they often on...

Analysis of the fate of a woman with a mole on her hairline

Moles can be divided into broad and narrow meaning...

People with these faces often have conflicts with others

It is difficult to avoid conflicts between people...

Zhuge's Divination No. 18: Winning the lottery is nine

Zhuge Liang's "The Divine Prediction of ...