Abstract
This paper compares mathematical models for automated market makers (AMM) including logarithmic market scoring rule (LMSR), liquidity sensitive LMSR (LS-LMSR), constant product/mean/sum, and others. It is shown that though LMSR may not be a good model for Decentralized Finance (DeFi) applications, LS-LMSR has several advantages over constant product/mean based AMMs. This paper proposes and analyzes constant ellipse based cost functions for AMMs. The proposed cost functions are computationally efficient (only requires multiplication and square root calculation) and have certain advantages over widely deployed constant product cost functions. For example, the proposed market makers are more robust against slippage based front running attacks. In addition to the theoretical advantages of constant ellipse based cost functions, our implementation shows that if the model is used as a cryptographic property swap tool over Ethereum blockchain, it saves up to 46.88% gas cost against Uniswap V2 and saves up to 184.29% gas cost against Uniswap V3 which has been launched in April 2021. The source codes related to this paper are available at https://github.com/coinswapapp and the prototype of the proposed AMM is available at http://coinswapapp.io/.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Dune Analytics. (2021). Collected–bot per month. https://duneanalytics.com/queries/14859.
Fama, E. F. (1970). Efficient capital markets: A review of theory and empirical work. The journal of Finance, 25(2), 383–417.
Good, I. J. (1952). Rational decisions. J. Royal Statistical Society B, 14(1), 107–114.
Hanson, R. (2003). Combinatorial information market design. Information Systems Frontiers, 5(1), 107–119.
Hanson, R. (2007). Logarithmic markets coring rules for modular combinatorial information aggregation. The Journal of Prediction Markets, 1(1), 3–15.
Hertzog, E., Benartzi, G., & Benartzi, G. (2017). Bancor protocol: continuous liquidity for cryptographic tokens through their smart contracts. https://storage.googleapis.com/website-bancor/2018/04/01ba8253-bancor_protocol_whitepaper_en.pdf.
Leshner, R., & Hayes, G. (2019). Compound: The money market protocol. https://compound.finance/documents/Compound.Whitepaper.pdf.
Martinelli, F., & Mushegian, N. (2019). A non-custodial portfolio manager, liquidity provider, and price sensor. https://balancer.finance/whitepaper/.
Othman, A., Pennock, D. M., Reeves, D. M., & Sandholm, T. (2013). A practical liquidity-sensitive automated market maker. ACM TEAC, 1(3), 1–25.
Robinson, D., & Konstantopoulos, G. (2020). Ethereum is a dark forest. https://medium.com/@danrobinson/.
Uniswap. (2020). Uniswap v2 core. https://uniswap.org/whitepaper.pdf.
Uniswap. (2021). V3. https://uniswap.org/whitepaper-v3.pdf.
Yongge, W. (2020). Automated market makers for decentralized finance (defi). arXiv preprintarXiv:2009.01676.
Zhou, L., Qin, K., Torres, C. F., Le, D. V., & Gervais, A. High-frequency trading on decentralized on-chain exchanges.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Wang, Y. (2023). Prediction Markets, Automated Market Makers, and Decentralized Finance (DeFi). In: Pardalos, P., Kotsireas, I., Guo, Y., Knottenbelt, W. (eds) Mathematical Research for Blockchain Economy. MARBLE 2022. Lecture Notes in Operations Research. Springer, Cham. https://doi.org/10.1007/978-3-031-18679-0_12
Download citation
DOI: https://doi.org/10.1007/978-3-031-18679-0_12
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-18678-3
Online ISBN: 978-3-031-18679-0
eBook Packages: Economics and FinanceEconomics and Finance (R0)