Eliminating Sandwich Attacks with the Help of Game Theory

02/08/2022
by   Lioba Heimbach, et al.
0

Predatory trading bots lurking in Ethereum's mempool present invisible taxation of traders on automated market makers (AMMs). AMM traders specify a slippage tolerance to indicate the maximum price movement they are willing to accept. This way, traders avoid automatic transaction failure in case of small price movements before their trade request executes. However, while a too-small slippage tolerance may lead to trade failures, a too-large slippage tolerance allows predatory trading bots to profit from sandwich attacks. These bots can extract the difference between the slippage tolerance and the actual price movement as profit. In this work, we introduce the sandwich game to analyze sandwich attacks analytically from both the attacker and victim perspectives. Moreover, we provide a simple and highly effective algorithm that traders can use to set the slippage tolerance. We unveil that most broadcasted transactions can avoid sandwich attacks while simultaneously only experiencing a low risk of transaction failure. Thereby, we demonstrate that a constant auto-slippage cannot adjust to varying trade sizes and pool characteristics. Our algorithm outperforms the constant auto-slippage suggested by the biggest AMM, Uniswap, in all performed tests. Specifically, our algorithm repeatedly demonstrates a cost reduction exceeding a factor of 100.

READ FULL TEXT

page 5

page 10

research
07/24/2022

Towards a Theory of Maximal Extractable Value I: Constant Function Market Makers

Maximal Extractable Value (MEV) represents excess value captured by mine...
research
08/04/2022

Delta Hedging Liquidity Positions on Automated Market Makers

Liquidity Providers on Automated Market Makers generate millions of USD ...
research
07/05/2023

Arbitrageurs' profits, LVR, and sandwich attacks: batch trading as an AMM design response

We consider an automated market maker (AMM) in which all trades are batc...
research
11/04/2021

SPEEDEX: A Scalable, Parallelizable, and Economically Efficient Digital EXchange

SPEEDEX is a decentralized exchange (DEX) letting participants securely ...
research
05/10/2022

Gamma and Vega Hedging Using Deep Distributional Reinforcement Learning

We use deep distributional reinforcement learning (RL) to develop a hedg...
research
03/02/2023

Predicting Stock Price Movement as an Image Classification Problem

The paper studies intraday price movement of stocks that is considered a...
research
06/14/2018

An eco-friendly Ecash with recycled banknotes

By comparing cryptocurrencies with other existing payment methods, inclu...

Please sign up or login with your details

Forgot password? Click here to reset