SAMM: Sharded Automated Market Makers

Read original: arXiv:2406.05568 - Published 9/11/2024 by Hongyin Chen, Amit Vaisman, Ittay Eyal
Total Score

0

SAMM: Sharded Automated Market Makers

Sign in to get full access

or

If you already have an account, we'll log you in

Overview

  • This paper proposes a new automated market maker (AMM) design called Sharded Automated Market Makers (SAMM) that aims to improve upon existing AMMs like ZeroSwap, Saddle, and Uniswap.
  • SAMM uses sharding to split the liquidity pool into smaller, independent pools, which can reduce slippage and improve capital efficiency.
  • The paper analyzes SAMM's performance and compares it to other AMM designs through theoretical analysis and simulations.

Plain English Explanation

Automated market makers (AMMs) are a key component of decentralized finance (DeFi) protocols that allow users to trade cryptocurrencies without an order book. However, existing AMMs like Uniswap and Saddle can suffer from high slippage (the difference between the expected and actual price of a trade) and inefficient use of capital.

The SAMM design proposed in this paper aims to address these issues by splitting the liquidity pool into smaller, independent "shards". This allows trades to be executed against the shard with the lowest slippage, potentially reducing the overall slippage experienced by users. Additionally, the sharded design can improve capital efficiency, as liquidity providers don't need to contribute to all trading pairs.

The researchers analyze SAMM's performance through theoretical modeling and simulations, and compare it to other AMM designs. The results suggest that SAMM can outperform existing AMMs in terms of slippage and capital efficiency, making it a promising option for DeFi protocols.

Technical Explanation

The SAMM design splits the liquidity pool into multiple independent "shards", each of which maintains its own set of trading pairs and liquidity. When a user wants to make a trade, the SAMM protocol routes the trade to the shard with the lowest slippage for that particular trade.

The paper provides a formal model of the SAMM design and analyzes its properties, including the optimal shard allocation, slippage bounds, and capital efficiency. The researchers also compare SAMM to other AMM designs, such as Uniswap, Saddle, and ZeroSwap, through theoretical analysis and simulations.

The key findings of the paper include:

  • SAMM can achieve lower slippage than other AMM designs by routing trades to the shard with the lowest slippage.
  • SAMM can improve capital efficiency by allowing liquidity providers to contribute to only the trading pairs they are interested in, rather than the entire pool.
  • The optimal shard allocation can be determined based on factors such as trade volume and price volatility.
  • SAMM's performance advantages are demonstrated through both theoretical analysis and simulations.

Critical Analysis

The paper provides a well-designed and thorough analysis of the SAMM design, including its formal modeling, theoretical properties, and performance comparisons to other AMMs. The researchers have clearly put significant effort into understanding the trade-offs and design choices involved in the SAMM approach.

One potential limitation of the SAMM design is the complexity introduced by the sharding mechanism. While the sharding can improve slippage and capital efficiency, it may also add overhead in terms of transaction processing and liquidity management. The paper does not fully address how this complexity would be handled in a real-world deployment.

Additionally, the paper focuses primarily on the theoretical and simulation-based analysis of SAMM, without providing insights from real-world user or market data. Validating the SAMM approach with empirical evidence from a production deployment would further strengthen the research.

Finally, the paper does not discuss the potential security implications of the SAMM design, such as the risks of shard isolation or cross-shard attacks. Addressing these types of concerns would be important for the real-world viability of the SAMM approach.

Conclusion

The SAMM design proposed in this paper represents a promising advancement in the field of automated market makers for decentralized finance. By leveraging sharding to split the liquidity pool, SAMM can potentially achieve lower slippage and improved capital efficiency compared to existing AMM designs.

The paper's theoretical analysis and simulations provide a strong foundation for the SAMM approach, but further research and real-world validation would be needed to fully assess its practical feasibility and deployment challenges. Nonetheless, the SAMM design is a thought-provoking contribution to the ongoing efforts to improve the performance and user experience of DeFi protocols.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Follow @aimodelsfyi on 𝕏 →

Related Papers

SAMM: Sharded Automated Market Makers
Total Score

0

SAMM: Sharded Automated Market Makers

Hongyin Chen, Amit Vaisman, Ittay Eyal

Automated Market Makers (AMMs) are a cornerstone of decentralized finance. They are smart contracts (stateful programs) running on blockchains. They enable virtual token exchange: Traders swap tokens with the AMM for a fee, while liquidity providers supply liquidity and earn these fees. Demand for AMMs is growing rapidly, but our experiment-based estimates show that current architectures cannot meet the projected demand by 2029. This is because the execution of existing AMMs is non-parallelizable. We present SAMM, an AMM comprising multiple shards. All shards are AMMs running on the same chain, but their independence enables parallel execution. Unlike classical sharding solutions, here security relies on incentive compatibility. Therefore, SAMM introduces a novel fee design. Through analysis of Subgame-Perfect Nash Equilibria (SPNE), we show that SAMM incentivizes the desired behavior: Liquidity providers balance liquidity among all shards, overcoming destabilization attacks, and trades are evenly distributed. We validate our game-theoretic analysis with a simulation using real-world data. We evaluate SAMM by implementing and deploying it on local testnets of the Sui and Solana blockchains. To our knowledge, this is the first quantification of ``hot-contract'' performance. SAMM improves throughput by 5x and 16x, respectively, potentially more with better parallelization of the underlying blockchains. It is directly deployable, mitigating the upcoming scaling bottleneck.

Read more

9/11/2024

🤿

Total Score

0

UAMM: Price-oracle based Automated Market Maker

Daniel Jiwoong Im, Alexander Kondratskiy, Vincent Harvey, Hsuan-Wei Fu

Automated market makers (AMMs) are pricing mechanisms utilized by decentralized exchanges (DEX). Traditional AMM approaches are constrained by pricing solely based on their own liquidity pool, without consideration of external markets or risk management for liquidity providers. In this paper, we propose a new approach known as UBET AMM (UAMM), which calculates prices by considering external market prices and the impermanent loss of the liquidity pool. Despite relying on external market prices, our method maintains the desired properties of a constant product curve when computing slippages. The key element of UAMM is determining the appropriate slippage amount based on the desired target balance, which encourages the liquidity pool to minimize impermanent loss. We demonstrate that our approach eliminates arbitrage opportunities when external market prices are efficient.

Read more

8/27/2024

ZeroSwap: Data-driven Optimal Market Making in DeFi
Total Score

0

ZeroSwap: Data-driven Optimal Market Making in DeFi

Viraj Nadkarni, Jiachen Hu, Ranvir Rana, Chi Jin, Sanjeev Kulkarni, Pramod Viswanath

Automated Market Makers (AMMs) are major centers of matching liquidity supply and demand in Decentralized Finance. Their functioning relies primarily on the presence of liquidity providers (LPs) incentivized to invest their assets into a liquidity pool. However, the prices at which a pooled asset is traded is often more stale than the prices on centralized and more liquid exchanges. This leads to the LPs suffering losses to arbitrage. This problem is addressed by adapting market prices to trader behavior, captured via the classical market microstructure model of Glosten and Milgrom. In this paper, we propose the first optimal Bayesian and the first model-free data-driven algorithm to optimally track the external price of the asset. The notion of optimality that we use enforces a zero-profit condition on the prices of the market maker, hence the name ZeroSwap. This ensures that the market maker balances losses to informed traders with profits from noise traders. The key property of our approach is the ability to estimate the external market price without the need for price oracles or loss oracles. Our theoretical guarantees on the performance of both these algorithms, ensuring the stability and convergence of their price recommendations, are of independent interest in the theory of reinforcement learning. We empirically demonstrate the robustness of our algorithms to changing market conditions.

Read more

4/30/2024

Measuring Arbitrage Losses and Profitability of AMM Liquidity
Total Score

0

Measuring Arbitrage Losses and Profitability of AMM Liquidity

Robin Fritsch, Andrea Canidio

This paper presents the results of a comprehensive empirical study of losses to arbitrageurs (following the formalization of loss-versus-rebalancing by [Milionis et al., 2022]) incurred by liquidity providers on automated market makers (AMMs). We show that those losses exceed the fees earned by liquidity providers across many of the largest AMM liquidity pools (on Uniswap). Remarkably, we also find that the Uniswap v2 pools are more profitable for passive LPs than their Uniswap v3 counterparts. We also investigate how arbitrage losses change with block times. As expected, arbitrage losses decrease when block production is faster. However, the rate of the decline varies significantly across different trading pairs. For instance, when comparing 100ms block times to Ethereum's current 12-second block times, the decrease in losses to arbitrageurs ranges between 20% to 70%, depending on the specific trading pair.

Read more

4/23/2024