Skip to main content

Prediction Markets, Automated Market Makers, and Decentralized Finance (DeFi)

  • Conference paper
  • First Online:
Mathematical Research for Blockchain Economy (MARBLE 2022)

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/.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 199.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Dune Analytics. (2021). Collected–bot per month. https://duneanalytics.com/queries/14859.

  2. Fama, E. F. (1970). Efficient capital markets: A review of theory and empirical work. The journal of Finance, 25(2), 383–417.

    Article  Google Scholar 

  3. Good, I. J. (1952). Rational decisions. J. Royal Statistical Society B, 14(1), 107–114.

    Google Scholar 

  4. Hanson, R. (2003). Combinatorial information market design. Information Systems Frontiers, 5(1), 107–119.

    Article  Google Scholar 

  5. Hanson, R. (2007). Logarithmic markets coring rules for modular combinatorial information aggregation. The Journal of Prediction Markets, 1(1), 3–15.

    Article  Google Scholar 

  6. 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.

  7. Leshner, R., & Hayes, G. (2019). Compound: The money market protocol. https://compound.finance/documents/Compound.Whitepaper.pdf.

  8. Martinelli, F., & Mushegian, N. (2019). A non-custodial portfolio manager, liquidity provider, and price sensor. https://balancer.finance/whitepaper/.

  9. Othman, A., Pennock, D. M., Reeves, D. M., & Sandholm, T. (2013). A practical liquidity-sensitive automated market maker. ACM TEAC, 1(3), 1–25.

    Article  Google Scholar 

  10. Robinson, D., & Konstantopoulos, G. (2020). Ethereum is a dark forest. https://medium.com/@danrobinson/.

  11. Uniswap. (2020). Uniswap v2 core. https://uniswap.org/whitepaper.pdf.

  12. Uniswap. (2021). V3. https://uniswap.org/whitepaper-v3.pdf.

  13. Yongge, W. (2020). Automated market makers for decentralized finance (defi). arXiv preprintarXiv:2009.01676.

  14. Zhou, L., Qin, K., Torres, C. F., Le, D. V., & Gervais, A. High-frequency trading on decentralized on-chain exchanges.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yongge Wang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics