Skip to main content
QUICK REVIEW

[Paper Review] On the Just-In-Time Discovery of Profit-Generating Transactions in DeFi Protocols

Liyi Zhou, Kaihua Qin|arXiv (Cornell University)|Mar 3, 2021
Blockchain Technology Applications and SecurityComputer Science39 references5 citations
TL;DR

This paper presents DeFiPoser-ARB and DeFiPoser-SMT, two real-time tools that automatically discover profitable, composable DeFi transactions using graph-based cycle detection and SMT-based logical modeling. The tools generate average weekly revenues of 191.48 ETH ($76,592) and 72.44 ETH ($28,976), respectively, with some trades exceeding block rewards by over 800×, highlighting significant risks to blockchain consensus through MEV-driven forks.

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 investigations show that this opportunity existed for 69 days and could have yielded more revenue if exploited one day earlier. Our evaluation spans 150 days, given 96 DeFi protocol actions, and 25 assets. Looking beyond the financial gains mentioned above, forks deteriorate the blockchain consensus security, as they increase the risks of double-spending and selfish mining. We explore the implications of DEFIPOSER-ARB and DEFIPOSER-SMT on blockchain consensus. Specifically, we show that the trades identified by our tools exceed the Ethereum block reward by up to 874x. Given optimal adversarial strategies provided by a Markov Decision Process (MDP), we quantify the value threshold at which a profitable transaction qualifies as Miner ExtractableValue (MEV) and would incentivize MEV-aware miners to fork the blockchain. For instance, we find that on Ethereum, a miner with a hash rate of 10% would fork the blockchain if an MEV opportunity exceeds 4x the block reward.

Motivation & Objective

  • To automate the discovery of profitable, composable DeFi transactions across interconnected protocols in real time.
  • To address the challenge of identifying arbitrage and complex financial opportunities in DeFi’s dynamic, stateful environment.
  • To quantify the impact of profitable transactions on blockchain consensus security, particularly through Miner Extractable Value (MEV) and fork incentives.
  • To evaluate the feasibility and financial viability of such strategies using minimal capital, especially via flash loans.
  • To demonstrate that existing high-reward attacks—like the bZx exploit—could have been detected and quantified in advance using the proposed methods.

Proposed method

  • DeFiPoser-ARB uses the Bellman-Ford-Moore algorithm on a blockchain state graph to detect negative cycles, representing arbitrage opportunities.
  • The tool performs local search iterations to refine and validate high-revenue transaction paths before final evaluation.
  • DeFiPoser-SMT constructs logical models of DeFi protocols using symbolic execution and SMT solving to verify complex, acyclic transaction sequences.
  • It applies heuristic pruning to reduce search space and uses a theorem prover to generate valid, profitable transaction sequences.
  • Both tools operate in real time, with average analysis times of 6.43s (DeFiPoser-ARB) and 5.39s (DeFiPoser-SMT) per Ethereum block, under 13.5s block time.
  • A Markov Decision Process (MDP) model is used to simulate adversarial mining strategies and determine the threshold at which miners would fork the chain for MEV extraction.

Experimental results

Research questions

  • RQ1Can automated tools discover profitable, composable DeFi transactions in real time across multiple interconnected protocols?
  • RQ2To what extent can graph-based cycle detection (DeFiPoser-ARB) and symbolic reasoning (DeFiPoser-SMT) identify arbitrage and complex financial strategies?
  • RQ3What is the financial potential of such strategies, and how much capital is required to exploit them?
  • RQ4How do profitable transactions affect blockchain consensus security, particularly through MEV and fork incentives?
  • RQ5At what MEV value threshold would rational miners be incentivized to fork the blockchain, and how does this compare to real-world attacks?

Key findings

  • DeFiPoser-ARB and DeFiPoser-SMT generate average weekly revenues of 191.48 ETH ($76,592) and 72.44 ETH ($28,976), respectively, over a 150-day evaluation period.
  • The highest single transaction revenue reached 81.31 ETH ($32,524) for DeFiPoser-ARB and 22.40 ETH ($8,960) for DeFiPoser-SMT.
  • The tools detected the known bZx attack from February 2020, which yielded $0.48M and had been exploitable for 69 days prior to its discovery.
  • The most profitable trade identified exceeded the Ethereum block reward by 874×, demonstrating extreme MEV potential.
  • A miner with 10% of the network hash rate would fork the chain if an MEV opportunity exceeds 4× the block reward.
  • Most profitable strategies require less than 1.00 ETH ($400) when using flash loans, indicating low capital barriers to entry for high-reward strategies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.