Demystify the dark forest on Ethereum — Sandwich Attacks.
Wow, automated market maker (AMM) decentralised exchanges (DEXs) are so sexy! Come on, they are the best! Look at these projects, Uniswap, Bancor, Curve, … They are non-custodial, don’t require KYC, and their pricing formula is public. Oh and everything on Ethereum is transparent, transparency is always good! What can go wrong?
Wait wait, oh Ethereum is transparent. Emm… everyone else can see my transaction before it is confirmed and place their trade before me? Emm… there is no regulation? Hmm… interesting, I can do attacks in this dark forest without getting punished?
Disclaimer: This article is to promote our recent paper ‘High-Frequency Trading on Decentralized On-Chain Exchanges’, which is accepted at IEEE Security and Privacy 2021. All views expressed in this article are my own and do not represent the opinions of the co-authors of our paper.
Our paper is available on Arxiv: https://arxiv.org/abs/2009.14021
For those of you who don’t know about AMM, it is a predefined pricing algorithm automatically performs price-discovery and market making, using assets within liquidity pools. Liquidity providers are, therefore, not required to monitor the market to adjust bid and ask prices. Liquidity takers can directly trade against the AMM liquidity. Such automation also…