Automated Market Makers for Decentralized Finance (DeFi) (2009.01676v3)
Abstract: This paper compares mathematical models for automated market makers 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 automated market makers. However, LS-LMSR requires complicated computation (i.e., logarithm and exponentiation) and the cost function curve is concave. In certain DeFi applications, it is preferred to have computationally efficient cost functions with convex curves to conform with the principle of supply and demand. This paper proposes and analyzes constant circle/ellipse based cost functions for automated market makers. The proposed cost functions are computationally efficient (only requires multiplication and square root calculation) and have several advantages over widely deployed constant product cost functions. For example, the proposed market makers are more robust against front-runner (slippage) attacks.
- Dune Analytics. Collected - bot per month. https://duneanalytics.com/queries/14859, May 2021.
- E.F. Fama. Efficient capital markets: A review of theory and empirical work. The journal of Finance, 25(2):383–417, 1970.
- I.J. Good. Rational decisions. J. Royal Statistical Society B, 14(1):107–114, 1952.
- R. Hanson. Combinatorial information market design. Information Systems Frontiers, 5(1):107–119, 2003.
- R. Hanson. Logarithmic markets coring rules for modular combinatorial information aggregation. The Journal of Prediction Markets, 1(1):3–15, 2007.
- 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, 2017.
- R. Leshner and G. Hayes. Compound: The money market protocol, February 2019. https://compound.finance/documents/Compound.Whitepaper.pdf.
- F. Martinelli and N. Mushegian. A non-custodial portfolio manager, liquidity provider, and price sensor. https://balancer.finance/whitepaper/, 2019.
- A practical liquidity-sensitive automated market maker. ACM TEAC, 1(3):1–25, 2013.
- D. Robinson and G. Konstantopoulos. Ethereum is a dark forest. https://medium.com/@danrobinson/, August 2020.
- Uniswap. Uniswap v2 core, March 2020. https://uniswap.org/whitepaper.pdf.
- Uniswap. V3, March 2021. https://uniswap.org/whitepaper-v3.pdf.
- Yongge Wang. Automated market makers for decentralized finance (defi). arXiv preprint arXiv:2009.01676, 2020.
- High-frequency trading on decentralized on-chain exchanges.