More to Extract: Discovering MEV by Token Contract Analysis

This paper introduces a pipeline comprising the static analysis tool tSCAN and the searcher tSEARCH to discover and exploit Token-based Maximal Extractable Value (tMEV) by identifying non-standard supply-control functions in token contracts, demonstrating that this approach can extract ten times more profit than existing MEV strategies on Ethereum.

Jiaqi Chen, Yuzhe Tang, Yue Duan

Published Tue, 10 Ma
📖 4 min read☕ Coffee break read

Imagine the blockchain as a giant, public auction house where people trade digital assets (tokens). In this auction, the order in which bids are placed matters immensely. If you can sneak your bid in right before a big purchase, you might buy something cheap and sell it immediately for a profit. This is called MEV (Maximal Extractable Value).

For a long time, researchers and "searchers" (profit-hunting bots) have been looking for these opportunities by watching the auction rules (the exchange contracts) or the traders themselves. They thought, "If I can predict how the price changes when someone swaps tokens, I can make money."

But this paper says: "You're looking at the wrong thing!"

The authors discovered a hidden source of profit that everyone else ignored: the tokens themselves.

The Core Idea: The "Magic Money Printer"

Most tokens are like standard dollars: if you have 100 dollars, you have 100 dollars. If you give 50 to a friend, you have 50 left.

But some tokens are like magic money printers. They have a special function (called a Rebase) that can suddenly change how many tokens everyone holds without anyone actually buying or selling them.

  • The Magic: If the token supply expands by 10%, everyone's balance suddenly jumps by 10%. If you had 100 tokens, you now have 110. If the pool had 1,000, it now has 1,100.

The New Strategy: The "Price-Insensitive" Trap

The paper introduces a new type of MEV called tMEV (Token-based MEV). Here is the analogy of how it works:

Imagine a Vending Machine (the Exchange) and a Magic Wallet (the Token).

  1. The Setup: You find a vending machine that sells "Magic Tokens" for "Real Cash." Crucially, this machine is dumb. It calculates the price based on a fixed formula, not on how many tokens are currently inside the machine. It doesn't care if the machine suddenly gets 1,000 extra tokens dumped into it; it keeps the price the same.
  2. The Trigger: A "victim" (or a random event) triggers the Magic Wallet to print more tokens for everyone. Suddenly, you and the vending machine both have more tokens.
  3. The Profit: Because the vending machine is "dumb" (price-insensitive), it doesn't realize the supply has changed. It still thinks the price is low.
    • You quickly buy more tokens from the machine at the old, low price.
    • Because the machine didn't adjust the price, you get more tokens than you should have.
    • You then sell those extra tokens back to the machine (or another machine) for a profit.

The Catch: If the vending machine was "smart" (price-sensitive), it would see the extra tokens, realize the supply increased, and raise the price immediately, killing your profit. But because the machine is "dumb," you get free money.

How the Paper Solves the Problem

The authors built a two-part robot system to find these opportunities:

  1. tSCAN (The Detective):

    • This tool scans thousands of token contracts like a detective looking for "suspects."
    • It ignores the usual suspects (standard transfers) and looks specifically for the Magic Money Printer functions (the non-standard supply controls).
    • It asks: "Does this token have a function that changes everyone's balance at once?"
  2. tSEARCH (The Hunter):

    • Once the detective finds a "Magic Token," the hunter looks for a "Dumb Vending Machine" (a price-insensitive exchange) that trades with it.
    • It watches the live auction house for any transaction that triggers the "Magic Printer."
    • The moment it sees the trigger, it calculates the perfect sequence of trades to squeeze out the profit before the market realizes what happened.

Why This Matters

  • The Blind Spot: Previous tools were like security guards looking only at the traders or the vending machines. They completely missed the fact that the tokens themselves could be rigged.
  • The Result: The authors tested their system and found that their bot could make 10 times more profit than the bots currently running on the Ethereum network.
  • The Impact: This reveals a massive, hidden layer of risk in the crypto world. If you are a liquidity provider (someone who puts money into these "dumb" vending machines), you might be losing money to these hidden tricks without even knowing it.

Summary in One Sentence

This paper discovered that some digital tokens can magically change their own supply, and if you trade them on exchanges that don't notice this change, you can print free money—a trick that current security tools are completely blind to.