UCL Discovery
UCL home » Library Services » Electronic resources » UCL Discovery

Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit

Qin, Kaihua; Zhou, Liyi; Livshits, Benjamin; Gervais, Arthur; (2021) Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit. In: International Conference on Financial Cryptography and Data Security FC 2021: Financial Cryptography and Data Security. (pp. pp. 3-32). Springer, Berlin, Heidelberg Green open access

[thumbnail of 2003.03810.pdf]
Preview
Text
2003.03810.pdf - Other

Download (2MB) | Preview

Abstract

Credit allows a lender to loan out surplus capital to a borrower. In the traditional economy, credit bears the risk that the borrower may default on its debt, the lender hence requires upfront collateral from the borrower, plus interest fee payments. Due to the atomicity of blockchain transactions, lenders can offer flash loans, i.e., loans that are only valid within one transaction and must be repaid by the end of that transaction. This concept has lead to a number of interesting attack possibilities, some of which were exploited in February 2020. This paper is the first to explore the implication of transaction atomicity and flash loans for the nascent decentralized finance (DeFi) ecosystem. We show quantitatively how transaction atomicity increases the arbitrage revenue. We moreover analyze two existing attacks with ROIs beyond 500k%. We formulate finding the attack parameters as an optimization problem over the state of the underlying Ethereum blockchain and the state of the DeFi ecosystem. We show how malicious adversaries can efficiently maximize an attack profit and hence damage the DeFi ecosystem further. Specifically, we present how two previously executed attacks can be “boosted” to result in a profit of 829.5k USD and 1.1M USD, respectively, which is a boost of 2.37xand 1.73x, respectively.

Type: Proceedings paper
Title: Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit
Event: Financial Cryptography and Data Security
ISBN-13: 9783662643211
Open access status: An open access version is available from UCL Discovery
DOI: 10.1007/978-3-662-64322-8_1
Publisher version: https://doi.org/10.1007/978-3-662-64322-8_1
Language: English
Additional information: This version is the author accepted manuscript. For information on re-use, please refer to the publisher’s terms and conditions.
UCL classification: UCL
UCL > Provost and Vice Provost Offices > UCL BEAMS
UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science
UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science > Dept of Computer Science
URI: https://discovery.ucl.ac.uk/id/eprint/10182327
Downloads since deposit
4Downloads
Download activity - last month
Download activity - last 12 months
Downloads by country - last 12 months

Archive Staff Only

View Item View Item