On the Just-In-Time Discovery of Profit-Generating Transactions in DeFi Protocols
Liyi Zhou, Kaihua Qin, Antoine Cully, Benjamin Livshits, Arthur, Gervais

TL;DR
This paper introduces two automated methods, DEFIPOSER-ARB and DEFIPOSER-SMT, for discovering profitable DeFi transactions, including arbitrage and complex strategies, and analyzes their impact on blockchain security and miner behavior.
Contribution
The paper presents novel algorithms for automatic detection of profitable DeFi trades, including a theorem prover-based approach for complex transactions, and evaluates their financial and security implications.
Findings
DEFIPOSER-ARB and DEFIPOSER-SMT can generate significant weekly revenue from DeFi trades.
The tools successfully identified the historic bZx attack, demonstrating practical effectiveness.
Profitable DeFi transactions can exceed block rewards by up to 874 times, influencing blockchain security.
Abstract
In this paper, we investigate two methods that allow us to automatically create profitable DeFi trades, one well-suited to arbitrage and the other applicable to more complicated settings. We first adopt the Bellman-Ford-Moore algorithm with DEFIPOSER-ARB and then create logical DeFi protocol models for a theorem prover in DEFIPOSER-SMT. While DEFIPOSER-ARB focuses on DeFi transactions that form a cycle and performs very well for arbitrage, DEFIPOSER-SMT can detect more complicated profitable transactions. We estimate that DEFIPOSER-ARB and DEFIPOSER-SMT can generate an average weekly revenue of 191.48ETH (76,592USD) and 72.44ETH (28,976USD) respectively, with the highest transaction revenue being 81.31ETH(32,524USD) and22.40ETH (8,960USD) respectively. We further show that DEFIPOSER-SMT finds the known economic bZx attack from February 2020, which yields 0.48M USD. Our forensic…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBlockchain Technology Applications and Security · Crime, Illicit Activities, and Governance
