arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.03762cs.GTcs.CR
收藏

利用博弈论消除三明治攻击

Eliminating Sandwich Attacks with the Help of Game Theory

Lioba Heimbach, Roger Wattenhofer

摘要:

潜伏在以太坊内存池中的掠夺性交易机器人对自动做市商(AMM)的交易员征收无形的税收。AMM交易者指定滑点容忍度来表示他们愿意接受的最大价格变动。通过这种方式,交易者可以避免在执行交易请求之前出现小幅价格波动时自动交易失败。然而,虽然太小的滑点容忍度可能导致交易失败,但太大的滑点容忍度允许掠夺性交易机器人从三明治攻击中获利。这些机器人可以提取滑点公差和实际价格变动之间的差异作为利润。在这项工作中,我们引入三明治游戏分析三明治攻击分析从攻击者和受害者的角度来看。此外,我们提供了一个简单而高效的算法,交易者可以使用它来设置滑点容限。我们发现,大多数广播交易可以避免三明治攻击,同时只经历一个低风险的交易失败。因此,我们证明了恒定的自动滑点不能适应不同的交易规模和池特征。我们的算法优于最大的AMM,Uniswap,在所有执行的测试中建议的恒定自动滑动。具体来说,我们的算法反复证明了成本降低超过100倍。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑