Analysis of DeFi Oracles
Xun Deng,
Sidi Mohamed Beillahi,
Cyrus Minwalla,
Han Du,
Andreas Veneris and
Fan Long
No 2024-10, Discussion Papers from Bank of Canada
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.
Keywords: Central bank research; Digital currencies and fintech; Payment clearing and settlement systems (search for similar items in EconPapers)
JEL-codes: E42 E51 G15 O31 (search for similar items in EconPapers)
Pages: 24 pages
Date: 2024-07
New Economics Papers: this item is included in nep-pay
References: View complete reference list from CitEc
Citations:
Downloads: (external link)
https://www.bankofcanada.ca/2024/07/staff-discussion-paper-2024-10/ Abstract (text/html)
https://www.bankofcanada.ca/wp-content/uploads/2024/07/sdp2024-10.pdf Full text (application/pdf)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:bca:bocadp:24-10
Access Statistics for this paper
More papers in Discussion Papers from Bank of Canada 234 Wellington Street, Ottawa, Ontario, K1A 0G9, Canada. Contact information at EDIRC.
Bibliographic data for series maintained by ().