Automated market makers (AMMs) are a form of decentralized cryptocurrency exchanges and considered a prime example of Decentralized Finance (DeFi) applications. Their popularity and high trading activity have resulted in millions of on-chain transactions leading to serious scalability issues. In this paper, we address the on-chain storage overhead problem of AMMs by utilizing a new sidechain architecture as a layer 2 solution, building a system called ammBoost. Our system reduces the amount of on-chain transactions, boosts throughput, and supports blockchain pruning. We devise several techniques to enable layer 2 processing for AMMs while preserving correctness and security of the underlying AMM. We also build a proof-of-concept of ammBoost for a Uniswap-inspired use case to empirically evaluate its performance. Our experiments show that ammBoost decreases the gas cost by 94.53% and the chain growth by at least 80%, and that it can support up to 500x of the daily traffic volume observed for Uniswap in practice.
翻译:自动做市商(AMMs)是一种去中心化加密货币交易所形式,被视为去中心化金融(DeFi)应用的主要范例。其普及度与高交易活跃度已导致数百万笔链上交易,引发严重的可扩展性问题。本文通过采用新型侧链架构作为第二层解决方案,构建名为ammBoost的系统,以解决AMMs的链上存储开销问题。我们的系统减少了链上交易数量,提升了吞吐量,并支持区块链剪枝。我们设计了多种技术,在保持底层AMM正确性与安全性的同时,为其实现第二层处理。此外,我们为受Uniswap启发的用例构建了ammBoost的概念验证,并通过实验评估其性能。实验表明,ammBoost可降低94.53%的燃气成本,将链增长减少至少80%,并能支持高达实践中观测到的Uniswap日交易量500倍的流量。