MEV Wiki
  • Introduction
  • Resource List
  • Terms and Concepts
    • DeFi
    • Automated Market Maker
    • Arbitrage
    • Lending Platforms
    • Slippage
    • Liquidations
    • Priority Gas Auctions
    • Transaction Ordering
  • Attack Examples
    • Front-running
    • Sandwich attack
    • Back-running
    • Liquidations
    • Time bandit attack
    • Uncle bandit attack
  • Attempts to trick the bots
    • Salmonella
    • Kattana
    • Other attempts
  • Solutions
    • Front-running as a Service (FaaS) or MEV Auctions (MEVA)
      • Private Transactions
      • BackRunMe by bloXroute
      • Flashbots
      • mistX by alchemist
      • KeeperDAO
      • EDEN Network (ArcherSwap)
      • Optimism
      • MiningDAO
      • BackBone Cabal
    • MEV Minimization
      • Conveyor (Automata Network)
      • SecretSwap (Secret Network)
      • Fair sequencing service (Chainlink)
      • Arbitrum (Offchain Labs)
      • Vega protocol
      • CowSwap
      • Veedo (StarkWare)
      • LibSubmarine
      • Sikka
      • Shutter Network
    • Other solutions
      • B.Protocol
  • Miscellaneous
  • Contributions
Powered by GitBook
On this page

Was this helpful?

  1. Attack Examples

Sandwich attack

What is a sandwich attack?

Alice wants to buy a Token A on a Decentralised Exchange (DEX) that uses an automated market maker (AMM) model. An adversary which sees Alice’s transaction can create two of its own transactions which it inserts before and after Alice’s transaction (sandwiching it). The adversary’s first transaction buys Token A, which pushes up the price for Alice’s transaction, and then the third transaction is the adversary’s transaction to sell Token A (now at a higher price) at a profit.

PreviousFront-runningNextBack-running

Last updated 3 years ago

Was this helpful?