Dynamic Curves for Decentralized Autonomous Cryptocurrency Exchanges

Authors Bhaskar Krishnamachari, Qi Feng, Eugenio Grippo

Thumbnail PDF


  • Filesize: 1.51 MB
  • 14 pages

Document Identifiers

Author Details

Bhaskar Krishnamachari
  • Viterbi School of Engineering, University of Southern California, Los Angeles, CA, USA
Qi Feng
  • Viterbi School of Engineering, University of Southern California, Los Angeles, CA, USA
Eugenio Grippo
  • Viterbi School of Engineering, University of Southern California, Los Angeles, CA, USA

Cite AsGet BibTex

Bhaskar Krishnamachari, Qi Feng, and Eugenio Grippo. Dynamic Curves for Decentralized Autonomous Cryptocurrency Exchanges. In 4th International Symposium on Foundations and Applications of Blockchain 2021 (FAB 2021). Open Access Series in Informatics (OASIcs), Volume 92, pp. 5:1-5:14, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2021)


One of the exciting recent developments in decentralized finance (DeFi) has been the development of decentralized cryptocurrency exchanges that can autonomously handle conversion between different cryptocurrencies. Decentralized exchange protocols such as Uniswap, Curve and other types of Automated Market Makers (AMMs) maintain a liquidity pool (LP) of two or more assets constrained to maintain at all times a mathematical relation to each other, defined by a given function or curve. Examples of such functions are the constant-sum and constant-product AMMs. Existing systems however suffer from several challenges. They require external arbitrageurs to restore the price of tokens in the pool to match the market price. Such activities can potentially drain resources from the liquidity pool. In particular dramatic market price changes can result in low liquidity with respect to one or more of the assets and reduce the total value of the LP. We propose in this work a new approach to constructing the AMM by proposing the idea of dynamic curves. It utilizes input from a market price oracle to modify the mathematical relationship between the assets so that the pool price continuously and automatically adjusts to be identical to the market price. This approach eliminates arbitrage opportunities and, as we show through simulations, maintains liquidity in the LP for all assets and the total value of the LP over a wide range of market prices.

Subject Classification

ACM Subject Classification
  • Applied computing → Online banking
  • Decentralized Exchange
  • Automated Market Maker
  • Decentralized Finance
  • Dynamic Curves


  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    PDF Downloads


  1. Hayden Adams, Noah Zinsmeister, and Dan Robinson. Uniswap v2 core, 2020. URL: https://uniswap.org/whitepaper.pdf.
  2. Guillermo Angeris and Tarun Chitra. Improved price oracles: Constant function market makers. arXiv preprint, 2020. URL: http://arxiv.org/abs/2003.10001.
  3. Guillermo Angeris, Hsien-Tang Kao, Rei Chiang, Charlie Noyes, and Tarun Chitra. An analysis of uniswap markets. Cryptoeconomic Systems Journal, 2019. Google Scholar
  4. Bancor. Announcing Bancor V2. URL: https://blog.bancor.network/announcing-bancor-v2-2f56b515e9d8, November 2020. Accessed: 2020-12-18.
  5. Dmitriy Berenzon. Constant function market makers: Defi’s "zero to one" innovation. URL: https://medium.com/bollinger-investment-group/constant-function-market-makers-defis-zero-to-one-innovation-968f77022159, May 2020. Accessed: 2020-12-18.
  6. Vitalik Buterin. Let’s run on-chain decentralized exchanges the way we run prediction markets. URL: https://www.reddit.com/r/ethereum/comments/55m04x/lets_run_onchain_decentralized_exchanges_the_way/, October 2016. Accessed: 2020-12-18.
  7. Chainlink. How to bring more capital and less risk to automated market maker dexs. URL: https://blog.chain.link/challenges-in-defi-how-to-bring-more-capital-and-less-risk-to-automated-market-maker-dexs/, June 2020. Accessed: 2020-12-18.
  8. Chainsecurity. Upcoming exchange concepts – a farewell to the order book? URL: https://chainsecurity.com/disruption-or-disillusion/. Accessed: 2020-12-18.
  9. Richard Chen. A comparison of decentralized exchange designs. URL: https://thecontrol.co/a-comparison-of-decentralized-exchange-designs-1deef249f56a, April 2019. Accessed: 2020-12-18.
  10. CoinMarketCap. Cryptocurrency prices, charts and market capitalizations. URL: https://coinmarketcap.com/. Accessed: 2020-12-18.
  11. Michael Egorov. Stableswap - efficient mechanism for stablecoin liquidity. URL: https://curve.fi/files/stableswap-paper.pdf, 2019.
  12. Gnosis. White paper. URL: https://github.com/gnosis/research/blob/master/gnosis-whitepaper.pdf, 2017.
  13. Robin Hanson. Logarithmic markets scoring rules for modular combinatorial information aggregation. The Journal of Prediction Markets, 1(1):3-15, 2007. Google Scholar
  14. Eyal Hertzog, Guy Benartzi, and Galia Benartzi. Bancor protocol: Continuous liquidity for cryptographic tokens through their smart contracts. Bancor White Paper, 2018. Google Scholar
  15. Satoshi Nakamoto. Bitcoin: A peer-to-peer electronic cash system. Online article, 2019. Google Scholar
  16. Jack Peterson, Joseph Krug, Micah Zoltu, Austin K Williams, and Stephanie Alexander. Augur: a decentralized oracle and prediction market platform. arXiv preprint, 2015. URL: http://arxiv.org/abs/1501.01042.
  17. Pintail. Uniswap: A good deal for liquidity providers? URL: https://pintail.medium.com/uniswap-a-good-deal-for-liquidity-providers-104c0b6816f2, August 2020. Accessed: 2020-12-18.
  18. Totle. Do dexs have a slippage problem? URL: https://medium.com/totle/do-dexs-have-a-slippage-problem-68c3a4fe5161, September 2019. Accessed: 2020-12-18.
  19. Yongge Wang. Automated market makers for decentralized finance (defi). arXiv preprint, 2020. URL: http://arxiv.org/abs/2009.01676.
  20. Will Warren and Amir Bandeali. 0x: An open protocol for decentralized exchange on the ethereum blockchain, 2017. URL: https://github.com/0xProject/whitepaper.
  21. Lawrence H White. The market for cryptocurrencies. Cato J., 35:383, 2015. Google Scholar