{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,11]],"date-time":"2026-10-11T10:21:38Z","timestamp":1791714098553,"version":"4.3.4"},"reference-count":42,"publisher":"MDPI AG","issue":"1","license":[{"start":{"date-parts":[[2022,12,28]],"date-time":"2022-12-28T00:00:00Z","timestamp":1672185600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Entropy"],"abstract":"<jats:p>Decentralized finance (DeFi) is by far the most popular application of blockchain technology. Despite the wide acceptance of new financial instruments and services, there are still many unexplored areas in the field. We dedicate this research to the understanding of one of the most crucial limitations of decentralized finance\u2014oracles. DeFi protocols, as well as other blockchain applications, function in a closed environment and regularly need to fetch real-world information (e.g., assets\u2019 prices)\u2014the tool used for this purpose is called an oracle. We review the existing oracle types in DeFi applications and focus our research on the least explored one: when another protocol, typically a decentralized exchange, serves as a price oracle. After explaining the mechanisms behind the decentralized exchanges, we introduce an algorithmic model that allows one to safely design a decentralized oracle and adjust crucial parameters. We believe that understanding and implementing the logic presented in the model can help to reduce the chances of price manipulations attacks, which are the most frequent incident types in DeFi.<\/jats:p>","DOI":"10.3390\/e25010060","type":"journal-article","created":{"date-parts":[[2022,12,29]],"date-time":"2022-12-29T02:56:50Z","timestamp":1672282610000},"page":"60","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":14,"title":["Oracles in Decentralized Finance: Attack Costs, Profits and Mitigation Measures"],"prefix":"10.3390","volume":"25","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-5418-1914","authenticated-orcid":false,"given":"Ayana T.","family":"Aspembitova","sequence":"first","affiliation":[{"name":"Euler Labs, London EC1V 2NX, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Michael A.","family":"Bentley","sequence":"additional","affiliation":[{"name":"Euler Labs, London EC1V 2NX, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2022,12,28]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Caldarelli, G. (2022, November 05). Who Is Contributing to Academic Research on Blockchain Oracles? A Bibliometric Analysis. Preprints 2021. Available online: https:\/\/www.preprints.org\/manuscript\/202109.0135\/v1.","DOI":"10.20944\/preprints202109.0135.v1"},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Zhou, L., Xiong, X., Ernstberger, J., Chaliasos, S., Wang, Z., Wang, Y., Qin, K., Wattenhofer, R., Song, D.X., and Gervais, A. (2022). SoK: Decentralized Finance (DeFi) Incidents. arXiv.","DOI":"10.1109\/SP46215.2023.10179435"},{"key":"ref_3","unstructured":"Wu, S., Wang, D., He, J., Zhou, Y., Wu, L., Yuan, X., He, Q., and Ren, K. (2021). DeFiRanger: Detecting Price Manipulation Attacks on DeFi Applications. arXiv."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Zhou, L., Qin, K., Cully, A., Livshits, B., and Gervais, A. (2021, January 24\u201327). On the Just-In-Time Discovery of Profit-Generating Transactions in DeFi Protocols. Proceedings of the 2021 IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA.","DOI":"10.1109\/SP40001.2021.00113"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Werner, S.M., Perez, D., Gudgeon, L., Klages-Mundt, A., Harz, D., and Knottenbelt, W.J. (2021). SoK: Decentralized Finance (DeFi). arXiv.","DOI":"10.1145\/3558535.3559780"},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Eskandari, S., Salehi, M., Gu, W.C., and Clark, J. (2021, January 26\u201328). SoK: Oracles from the ground truth to market manipulation. Proceedings of the 3rd ACM Conference on Advances in Financial Technologies, Arlington Virginia, VA, USA.","DOI":"10.1145\/3479722.3480994"},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"85675","DOI":"10.1109\/ACCESS.2020.2992698","article-title":"Trustworthy Blockchain Oracles: Review, Comparison, and Open Research Challenges","volume":"8","author":"Salah","year":"2020","journal-title":"IEEE Access"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"106582","DOI":"10.1016\/j.compeleceng.2020.106582","article-title":"Reliability analysis for blockchain oracles","volume":"83","author":"Lo","year":"2020","journal-title":"Comput. Electr. Eng."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Liu, B., and Szalachowski, P. (2021, January 23\u201326). A First Look into DeFi Oracles. Proceedings of the 2021 IEEE International Conference on Decentralized Applications and Infrastructures (DAPPS), Online.","DOI":"10.1109\/DAPPS52256.2021.00010"},{"key":"ref_10","unstructured":"Steve Ellis, A.J., and Nazarov, S. (2022, November 05). Chainlink: A Decentralized Oracle Network. Available online: https:\/\/research.chain.link\/whitepaper-v1.pdf."},{"key":"ref_11","unstructured":"(2022, November 05). Chainlink 2.0: Next Steps in the Evolution of Decentralized Oracle Networks. Available online: https:\/\/chain.link\/whitepaper."},{"key":"ref_12","unstructured":"Oraclize (2022, November 05). A Scalable Architecture for On-Demand, Untrusted Delivery of Entropy. Available online: https:\/\/provable.xyz\/papers\/random_datasource-rev1.pdf."},{"key":"ref_13","unstructured":"(2022, November 05). bZx Hack II Full Disclosure (With Detailed Profit Analysis). Available online: https:\/\/peckshield.medium.com\/bzx-hack-ii-full-disclosure-with-detailed-profit-analysis-8126eecc1360."},{"key":"ref_14","unstructured":"(2022, November 05). Understanding the Cream Finance Hack. Available online: https:\/\/medium.com\/@AndyPavia\/swissblock-post-mortem-cream-finance-hack-7c1caff4335c."},{"key":"ref_15","unstructured":"(2022, November 05). Harvest Finance. Available online: https:\/\/rekt.news\/harvest-finance-rekt\/."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Mackinga, T., Nadahalli, T., and Wattenhofer, R. (2022, November 05). TWAP Oracle Attacks: Easier Done than Said?. Cryptology ePrint Archive, Available online: https:\/\/eprint.iacr.org\/2022\/445.","DOI":"10.1109\/ICBC54727.2022.9805499"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Othman, A., and Sandholm, T. (2010, January 7\u201311). Automated market-making in the large: The gates hillman prediction market. Proceedings of the 11th ACM conference on Electronic commerce, Cambridge, MA, USA.","DOI":"10.1145\/1807342.1807401"},{"key":"ref_18","unstructured":"Goel, S., Pennock, D.M., Reeves, D.M., and Yu, C. (2008, January 13\u201317). Yoopick: A Combinatorial Sports Prediction Market. Proceedings of the Twenty-Third AAAI Conference on Artificial Intelligence, Chicago, IL, USA."},{"key":"ref_19","unstructured":"Othman, A. (2012). Automated Market Making: Theory and Practice. [Ph.D. Thesis, Carnegie Mellon University]."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"203","DOI":"10.1111\/1467-9965.00068","article-title":"Coherent Measures of Risk","volume":"9","author":"Artzner","year":"1999","journal-title":"Math. Financ."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"107","DOI":"10.1023\/A:1022058209073","article-title":"Combinatorial Information Market Design","volume":"5","author":"Hanson","year":"2003","journal-title":"Inf. Syst. Front."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"3","DOI":"10.5750\/jpm.v1i1.417","article-title":"Logarithmic Markets Scoring Rules For Modular Combinatorial Information Aggregation","volume":"1","author":"Hanson","year":"2012","journal-title":"J. Predict. Mark."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"14:1","DOI":"10.1145\/2509413.2509414","article-title":"A Practical Liquidity-Sensitive Automated Market Maker","volume":"1","author":"Othman","year":"2013","journal-title":"ACM Trans. Econ. Comput."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"VC Carvalho, A., Silveira, D., Ely, R.A., and Cajueiro, D.O. (2022). A Logarithmic Market Scoring Rule Agent-Based Model to Evaluate Prediction Markets, SSRN.","DOI":"10.2139\/ssrn.4103827"},{"key":"ref_25","unstructured":"Peterson, J., Krug, J., Zoltu, M., Williams, A.K., and Alexander, S. (2022). Augur: A Decentralized Oracle and Prediction Market Platform. arXiv."},{"key":"ref_26","unstructured":"(2022, November 05). Gnosis Whitepaper. Available online: https:\/\/github.com\/gnosis\/research\/blob\/master\/gnosis-whitepaper.pdf."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Berg, J.A., Fritsch, R., Heimbach, L., and Wattenhofer, R. (2022). An Empirical Study of Market Inefficiencies in Uniswap and SushiSwap. arXiv.","DOI":"10.1007\/978-3-031-32415-4_16"},{"key":"ref_28","unstructured":"Hayden Adams, N.Z., and Robinson, D. (2022, November 05). Uniswap v2 Core. Available online: https:\/\/uniswap.org\/whitepaper.pdf."},{"key":"ref_29","unstructured":"Adams, H., Zinsmeister, N., Salem, M., Keefer, R., and Robinson, D. (2022, November 05). Uniswap v3 Core. Available online: https:\/\/uniswap.org\/whitepaper-v3.pdf."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Angeris, G., and Chitra, T. (2020, January 21\u201323). Improved Price Oracles: Constant Function Market Makers. Proceedings of the 2nd ACM Conference on Advances in Financial Technologies, New York, NY, USA.","DOI":"10.1145\/3419614.3423251"},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Angeris, G., Kao, H.T., Chiang, R., Noyes, C.R., and Chitra, T. (2021). An Analysis of Uniswap Markets. Cryptoecon. Syst., 1.","DOI":"10.21428\/58320208.c9738e64"},{"key":"ref_32","unstructured":"Egorov, M. (2022, November 05). StableSwap-Efficient Mechanism for Stablecoin liquidity. Available online: https:\/\/wikibitimg.fx994.com\/attach\/2020\/10\/189869321\/WBE189869321_21425.pdf."},{"key":"ref_33","unstructured":"Xu, J., Paruch, K., Cousaert, S., and Feng, Y. (2021). SoK: Decentralized Exchanges (DEX) with Automated Market Maker (AMM) protocols. arXiv."},{"key":"ref_34","unstructured":"Hoyte, D. (2022, November 05). Median Oracle. Available online: https:\/\/github.com\/euler-xyz\/median-oracle."},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Gudgeon, L., Werner, S.M., Perez, D., and Knottenbelt, W.J. (2020, January 21\u201323). DeFi Protocols for Loanable Funds: Interest Rates, Liquidity and Market Efficiency. Proceedings of the 2nd ACM Conference on Advances in Financial Technologies, New York, NY, USA.","DOI":"10.1145\/3419614.3423254"},{"key":"ref_36","unstructured":"(2022, November 05). Aave Protocol Whitepaper. Available online: https:\/\/github.com\/aave\/aave-protocol\/blob\/master\/docs\/Aave_Protocol_Whitepaper_v1_0.pdf."},{"key":"ref_37","unstructured":"R. Leshner, G.H. (2022, November 05). Compound: The Money Market Protocol. Available online: https:\/\/compound.finance\/documents\/Compound.Whitepaper.pdf."},{"key":"ref_38","unstructured":"Juliano, A. (2022, November 05). dYdX: A Standard for Decentralized Margin Trading and Derivatives. Available online: https:\/\/whitepaper.dydx.exchange."},{"key":"ref_39","unstructured":"(2022, November 05). The Maker Protocol: MakerDAO\u2019s Multi-Collateral Dai (MCD) System. Available online: https:\/\/makerdao.com\/en\/whitepaper."},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Krishnamachari, B., Feng, Q., and Grippo, E. (2021). Dynamic Curves for Decentralized Autonomous Cryptocurrency Exchanges. arXiv.","DOI":"10.1109\/ICBC51069.2021.9461100"},{"key":"ref_41","unstructured":"Egorov, M. (2022, November 05). Automatic Market-Making with Dynamic Peg. Available online: https:\/\/classic.curve.fi\/files\/crypto-pools-paper.pdf."},{"key":"ref_42","unstructured":"Port, A., and Tiruviluamala, N. (2022). Mixing Constant Sum and Constant Product Market Makers. arXiv."}],"container-title":["Entropy"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1099-4300\/25\/1\/60\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T01:54:04Z","timestamp":1760147644000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1099-4300\/25\/1\/60"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,12,28]]},"references-count":42,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2023,1]]}},"alternative-id":["e25010060"],"URL":"https:\/\/doi.org\/10.3390\/e25010060","relation":{},"ISSN":["1099-4300"],"issn-type":[{"value":"1099-4300","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,12,28]]}}}