ZeroSwap: Data-Driven Optimal Market Making in Decentralized Finance

Viraj Nadkarni, Jiachen Hu, Ranvir Rana, Chi Jin, Sanjeev Kulkarni, Pramod Viswanath

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Automated Market Makers (AMMs) are major centers of matching liquidity supply and demand in Decentralized Finance. Their functioning relies primarily on the presence of liquidity providers (LPs) incentivized to invest their assets into a liquidity pool. However, the prices at which a pooled asset is traded is often more stale than the prices on centralized and more liquid exchanges. This leads to the LPs suffering losses to arbitrage. This problem is addressed by adapting market prices to trader behavior, captured via the classical market microstructure model of Glosten and Milgrom. In this paper, we propose the first optimal Bayesian and the first model-free data-driven algorithm to optimally track the external price of the asset. The notion of optimality that we use enforces a zero-profit condition on the prices of the market maker, hence the name ZeroSwap. This ensures that the market maker balances losses to informed traders with profits from noise traders. The key property of our approach is the ability to estimate the external market price without the need for price oracles or loss oracles. Our theoretical guarantees on the performance of both these algorithms, ensuring the stability and convergence of their price recommendations, are of independent interest in the theory of reinforcement learning. We empirically demonstrate the robustness of our algorithms to changing market conditions.

Original languageEnglish (US)
Title of host publicationFinancial Cryptography and Data Security - 28th International Conference, FC 2024, Revised Selected Papers
EditorsJeremy Clark, Elaine Shi
PublisherSpringer
Pages209-227
Number of pages19
ISBN (Print)9783031786754
DOIs
StatePublished - 2025
Externally publishedYes
Event28th International Conference on Financial Cryptography and Data Security, FC 2024 - Willemstad, Netherlands
Duration: Mar 4 2024Mar 8 2024

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14744 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference28th International Conference on Financial Cryptography and Data Security, FC 2024
Country/TerritoryNetherlands
CityWillemstad
Period3/4/243/8/24

ASJC Scopus subject areas

  • Theoretical Computer Science
  • General Computer Science

Fingerprint

Dive into the research topics of 'ZeroSwap: Data-Driven Optimal Market Making in Decentralized Finance'. Together they form a unique fingerprint.

Cite this