Recognizing Atomic Arbitrage MEV Transactions
Last updated
Last updated
Since transactions can be highly complex and involve infinite unknown patterns, relying solely on specific transaction pattern matching is inadequate to identify new MEV patterns. To detect Arbitrage in transactions, we need a universal abstraction for transactions.To achieve this, we have established the following principles for recognition.
We define a transaction as a collection of asset transfers.
Then, we evaluate the outcomes of these transfers using a set of rules to determine if an MEV has occurred.
We break down a transaction into Transfers and Trades.
Our algorithm merges Transfers to form a Transfer Table.
Next, we use the Transfer Table to merge the rows with the same address and generate a Combined Transfer Table.
Our rule of thumb is: if the token balance of the nearest point to the "from" or "to" address of the transaction within a strongly connected component is positive, we regard this transaction as Arbitrage.
To help you better understand it, next, we will present a detailed process and an example to illustrate our algorithm based on the Token Flow graph generated in our EigenTx tool.