AMM-based DEX on the XRP Ledger (2312.13749v4)
Abstract: Automated Market Maker (AMM)-based Decentralized Exchanges (DEXs) are crucial in Decentralized Finance (DeFi), but Ethereum implementations suffer from high transaction costs and price synchronization challenges. To address these limitations, we compare the XRP Ledger (XRPL)-AMM-Decentralized Exchange (DEX), a protocol-level implementation, against a Generic AMM-based DEX (G-AMM-DEX) on Ethereum, akin to Uniswap's V2 AMM implementation, through agent-based simulations using real market data and multiple volatility scenarios generated via Geometric Brownian Motion (GBM). Results demonstrate that the XRPL-AMM-DEX achieves superior price synchronization, reduced slippage, and improved returns due to XRPL's lower fees and shorter block times, with benefits amplifying during market volatility. The integrated Continuous Auction Mechanism (CAM) further mitigates impermanent loss by redistributing arbitrage value to Liquidity Providers (LPs). To the best of our knowledge, this study represents the first comparative analysis between protocol-level and smart contract AMM-based DEX implementations and the first agent-based simulation validating theoretical auction mechanisms for AMM-based DEXs.
- D. Zetzsche, D. Arner, and R. Buckley, “Decentralized finance,” 2020. [Online]. Available: https://academic.oup.com/jfr/article/6/2/172/5913239
- S. Kitzler, F. Victor, P. Saggese, and B. Haslhofer, “Disentangling decentralized finance (defi) compositions,” 2023. [Online]. Available: https://dl.acm.org/doi/10.1145/3532857
- K. Shah, D. Lathiya, N. Lukhi, K. Parmar, and H. Sanghvi, “A systematic review of decentralized finance protocols,” 2023. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S2666603023000179
- D. Metelski and J. Sobieraj, “Decentralized finance (defi) projects: A study of key performance indicators in terms of defi protocols’ valuations,” 2022. [Online]. Available: https://www.mdpi.com/2227-7072/10/4/108
- H. Eyal, G. Benartzi, and G. Benartzi, “Bancor whitepaper,” 2017. [Online]. Available: https://www.allcryptowhitepapers.com/bancor-whitepaper/
- H. Adams, N. Zinsmeister, M. Salem, R. Keefer, and D. Robinson, “Uniswap whitepaper,” 2023. [Online]. Available: https://uniswap.org/whitepaper-v3.pdf
- A. Othman, “Automated market making: Theory and practice,” 2012. [Online]. Available: http://reports-archive.adm.cs.cmu.edu/anon/2012/CMU-CS-12-123.pdf
- L. Heimbach, E. Schertenleib, and R. Wattenhofer, “Exploring price accuracy on uniswap v3 in times of distress,” 2022. [Online]. Available: https://arxiv.org/pdf/2208.09642.pdf
- B. Ghosh, H. Kazouz, and Z. Umar, “Do automated market makers in defi ecosystem exhibit time-varying connectedness during stressed events?” 2023. [Online]. Available: https://www.mdpi.com/1911-8074/16/5/259
- J. Xu, K. Paruch, S. Cousaert, and Y. Feng, “Sok: Decentralized exchanges (DEX) with automated market maker (AMM) protocols,” ACM Comput. Surv., vol. 55, no. 11, 2 2023. [Online]. Available: https://doi.org/10.1145/3570639
- A. Malhotra and D. J. Schwartz, “0030 xls 30d: Automated market maker on xrpl,” 2022. [Online]. Available: https://github.com/XRPLF/XRPL-Standards/discussions/78
- S. P. Lee, “Market share of decentralized crypto exchanges, by trading volume — coingecko,” 2023. [Online]. Available: https://www.coingecko.com/research/publications/decentralized-crypto-exchanges-market-share
- G. Angeris, H.-T. Kao, R. Chiang, C. Noyes, and T. Chitra, “An analysis of uniswap markets,” 2019. [Online]. Available: https://arxiv.org/pdf/1911.03380.pdf
- J. Xu and Y. Feng, “Reap the harvest on blockchain: A survey of yield farming protocols,” IEEE Transactions on Network and Service Management, vol. 20, no. 1, pp. 858–869, 2023.
- H. Adams, N. Zinsmeister, and D. Robinson, “Uniswap v2 core,” 2020.
- Ripple, “Xrpl oldest dex,” 2023. [Online]. Available: https://xrpl.org/decentralized-exchange.html
- I. Gemeliarana and R. Sari, “Evaluation of proof of work (pow) blockchains security network on selfish mining,” 2019. [Online]. Available: https://ieeexplore.ieee.org/document/8864381
- A. Sirio, W. Huang, and A. Schrimpf, “Trading in the defi era: automated market-maker,” 2021. [Online]. Available: https://www.bis.org/publ/qtrpdf/r_qt2112v.htm
- V. Tumas, B. Fiz Pontiveros, C. Torres, and R. State, “A ripple for change: Analysis of frontrunning in the xrp ledger,” 05 2023.
- Ripple, “Xrpl overview,” 2023. [Online]. Available: https://xrpl.org/xrp-ledger-overview.html
- Ethereum.org, “Ethereum blocks,” 2023. [Online]. Available: https://ethereum.org/en/developers/docs/blocks/
- Ripple, “Xrpl transaction cost,” 2023. [Online]. Available: https://xrpl.org/transaction-cost.html
- G. Peduzzi, J. James, and J. Xu, “Jack the rippler: Arbitrage on the decentralized exchange of the xrp ledger,” 2021. [Online]. Available: https://ieeexplore.ieee.org/document/9569833
- Ripple Open Source, “Automated market maker,” 2023. [Online]. Available: https://opensource.ripple.com/docs/xls-30d-amm/amm-uc/
- “Uniswap v3 (ethereum) trade volume, trade pairs & trust score — coingecko.” [Online]. Available: https://www.coingecko.com/en/exchanges/uniswap-v3-ethereum
- “Uniswap pools.” [Online]. Available: https://info.uniswap.org/#/pools
- R. Marathe and S. Ryan, “On the validity of the geometric brownian motion assumption,” 2007. [Online]. Available: https://www.tandfonline.com/doi/full/10.1080/00137910590949904
- J. Song, Z. Duan, and W. Lyu, “Research on geometric brownian motion and its practice in pricing,” 2022. [Online]. Available: https://dl.acm.org/doi/pdf/10.1145/3523181.3523204
- J. Lidén, “Stock price predictions using a geometric brownian motion,” 2018. [Online]. Available: https://www.diva-portal.org/smash/get/diva2:1218088/FULLTEXT01.pdf
- V. Moroz and I. Yalymova, “Modeling the volatity of cryptocurrency markets,” 2021. [Online]. Available: https://repository.kpi.kharkov.ua/server/api/core/bitstreams/2fcc0db4-f97d-4079-b090-c4e1e415de8f/content
- E. Bouri, R. Gupta, and D. Roubaud, “Herding behaviour in cryptocurrencies,” Finance Research Letters, vol. 29, pp. 216–221, 6 2019.
- T. King and D. Koutmos, “Herding and feedback trading in cryptocurrency markets,” Annals of Operations Research, vol. 300, pp. 79–96, 5 2021. [Online]. Available: https://link.springer.com/article/10.1007/s10479-020-03874-4
- Y. Liu and A. Tsyvinski, “Risks and returns of cryptocurrency,” 2018. [Online]. Available: https://www.nber.org/system/files/working_papers/w24877/w24877.pdf
- Etherscan, “Gas tracker,” 2023. [Online]. Available: https://etherscan.io/gastracker#historicaldata
- Poolfish, “Ethereum fees,” 2023. [Online]. Available: https://poolfish.xyz/
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.