IDEAS home Printed from https://ideas.repec.org/p/bca/bocadp/24-10.html
   My bibliography  Save this paper

Analysis of DeFi Oracles

Author

Listed:
  • Xun Deng
  • Sidi Mohamed Beillahi
  • Cyrus Minwalla
  • Han Du
  • Andreas Veneris
  • Fan Long

Abstract

This paper presents OVer, a framework designed to automatically analyze the behaviour of decentralized finance (DeFi) protocols when subjected to a "skewed" oracle input. OVer firstly performs a symbolic analysis on the given contract and constructs a model of constraints. Then, the framework leverages a satisfiability modulo theory solver to identify parameters that allow its secure operation. Furthermore, guard statements can be generated for smart contracts that may use the oracle values, thus effectively preventing oracle manipulation attacks. Empirical results show that OVer can successfully analyze all 10 benchmarks collected, which encompass a diverse range of DeFi protocols. Additionally, this paper illustrates that current parameters used in the majority of benchmarks are inadequate to ensure safety when confronted with significant oracle deviations. It shows that existing ad-hoc control mechanisms such as introducing delays are often insufficient or even detrimental to protect the DeFi protocols against the oracle deviation in the real world. Moreover, this paper delves into the design considerations of price oracles within a potential blockchain-based digital currency.

Suggested Citation

  • Xun Deng & Sidi Mohamed Beillahi & Cyrus Minwalla & Han Du & Andreas Veneris & Fan Long, 2024. "Analysis of DeFi Oracles," Discussion Papers 2024-10, Bank of Canada.
  • Handle: RePEc:bca:bocadp:24-10
    as

    Download full text from publisher

    File URL: https://www.bankofcanada.ca/2024/07/staff-discussion-paper-2024-10/
    File Function: Abstract
    Download Restriction: no

    File URL: https://www.bankofcanada.ca/wp-content/uploads/2024/07/sdp2024-10.pdf
    File Function: Full text
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    Central bank research; Digital currencies and fintech; Payment clearing and settlement systems;
    All these keywords.

    JEL classification:

    • G15 - Financial Economics - - General Financial Markets - - - International Financial Markets
    • E42 - Macroeconomics and Monetary Economics - - Money and Interest Rates - - - Monetary Sytsems; Standards; Regimes; Government and the Monetary System
    • E51 - Macroeconomics and Monetary Economics - - Monetary Policy, Central Banking, and the Supply of Money and Credit - - - Money Supply; Credit; Money Multipliers
    • O31 - Economic Development, Innovation, Technological Change, and Growth - - Innovation; Research and Development; Technological Change; Intellectual Property Rights - - - Innovation and Invention: Processes and Incentives

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bca:bocadp:24-10. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: the person in charge (email available below). General contact details of provider: https://edirc.repec.org/data/bocgvca.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.