Paper: arXiv 2406.13794
Abstract
Automated Market Makers (AMMs) are essential in Decentralized Finance (DeFi) as they match liquidity supply with demand. They function through liquidity providers (LPs) who deposit assets into liquidity pools. However, the asset trading prices in these pools often trail behind those in more dynamic, centralized exchanges, leading to potential arbitrage losses for LPs. This issue is tackled by adapting market maker bonding curves to trader behavior, based on the classical market microstructure model of Glosten and Milgrom. Our approach ensures a zero-profit condition for the market maker’s prices. We derive the differential equation that an optimal adaptive curve should follow to minimize arbitrage losses while remaining competitive. Solutions to this optimality equation are obtained for standard Gaussian and Lognormal price models using Kalman filtering. A key feature of our method is its ability to estimate the external market price without relying on price or loss oracles. We also provide an equivalent differential equation for the implied dynamics of canonical static bonding curves and establish conditions for their optimality. Our algorithms demonstrate robustness to changing market conditions and adversarial perturbations, and we offer an on-chain implementation using Uniswap v4 alongside off-chain AI co-processors.
Complexity vs Empirical Score
- Math Complexity: 8.0/10
- Empirical Rigor: 6.5/10
- Quadrant: Holy Grail — high math complexity, high empirical rigor
Why this score: The paper employs advanced mathematical techniques like differential equations, stochastic models, and Kalman filtering, which is dense and complex. However, it includes robust theoretical comparisons, on-chain implementation with Uniswap v4, and adversarial robustness analysis, making it highly data/implementation-focused.
Research Flowchart
flowchart TD A["Research Goal"] -->|Formulate| B["Adaptive Bonding Curves"] B -->|Methodology| C["Market Microstructure Model<br>Glosten-Milgrom"] C -->|Core Condition| D["Zero-Profit Condition"] D -->|Mathematical Form| E["Optimality Differential Equation"] E -->|Solve Using| F["Computational Process<br>Kalman Filtering"] F -->|Data Inputs| G["Off-chain AI Co-processors<br>No Price Oracles"] G -->|Implementation| H["On-chain: Uniswap v4"] H -->|Key Outcomes| I["Minimized Arbitrage Loss &<br>Adaptive Liquidity"]
Cited References (90)
- Computer Programming as an Art (1974) — link
- Letters to the editor: go to statement considered harmful (1968) — link
- Transaction Processing: Concepts and Techniques (1993)
- On Time versus Space and Related Problems (1975) — link
- 16th Annual Symposium on Foundations of Computer Science, Berkeley, California, USA, October 13-15, 1975 (1975)
- Axiom website
- Axiom Client Ciruit
- Brevis website
and 82 more
- Neural Kalman Filtering (2021) — link
- Hooks on Uniswap v4
- Aera website
- Centralized Exchange (CEX) vs Decentralized Exchange (DEX). Which is the best crypto exchange?
- Offchain compute is all you need
- 1inch DEX aggreagator
- Balancer WhitePaper
- Learning an Outlier-Robust Kalman Filter (2007)
- Kalman filtering with adversarial corruptions (2022)
- An approach to time series smoothing and forecasting using the EM algorithm (1982)
- Better blockchains lead to more profitable liquidity providers
- Probabilistic robotics (2005) — link
- Particle filters for positioning, navigation, and tracking (2002) — link
- Cybernetics: or Control and Communication in the Animal and the Machine (1948)
- Constant Function Market Makers: Multi-Asset Trades via Convex Optimization (2021) — link
- Forecasting with trending data (2006)
- Automated Market Making and Arbitrage Profits in the Presence of Fees (2023) — link
- Understanding Uniswap’s New Liquidity Aggregator (TL;DR at the End) (2023) — link
- DeFi liquidity management via Optimal Control: Ohm as a case study
- Understanding domain randomization for sim-to-real transfer (2021) — link
- A Bayesian Approach for Learning and Planning in Partially Observable Markov Decision Processes. (2011)
- Flash Loan Attacks: Risks And Prevention
- Finding the Right Curve: Optimal Design of Constant Function Market Makers (2023) — link
- Diamonds are Forever, Loss-Versus-Rebalancing is Not (2022) — link
- Impermanent Loss in Uniswap v3 (2021) — link
- Improved Price Oracles (2020) — link
- Liquidity Provider Returns in Geometric Mean Markets (2020) — link
- Cybernetics: or Control and Communication in the Animal and the Machine (1948)
- Robust and Optimal Control (1996) — link
- On the identification of variances and adaptive Kalman filtering (1970) — link
- A New Approach to Linear Filtering and Prediction Problems (1960)
- When does the tail wag the dog? Curvature and market making (2020) — link
- Adaptive Curves for Optimally Efficient Market Making — → 2406.13794
- ZeroSwap: Data-driven Optimal Market Making in DeFi (2023) — link
- Optimal Fees for Geometric Mean Market Makers (2021) — link
- Order flow toxicity on DEXes
- Uniswap v2 Core
- Block.Co trade volume comparisons
- Uniswap v3 Core
- Uniswap v4 Docs
- UniswapX Docs
- Optimism Docs
- Optimistic Rollups
- Eigenlayer Whitepaper
- CowSwap Docs
- Flash Loans Aren’t the Problem, Centralized Price Oracles Are
- Generalizing Impermanent Loss on Decentralized Exchanges with Constant Function Market Makers (2023) — link
- Front running, bots, slippage, oracle pricing errors: AMMs are great, but there are problems.
- Maximum Likelihood from Incomplete Data via the EM Algorithm (1977)
- SoK: Decentralized Exchanges (DEX) with Automated Market Maker (AMM) Protocols (2023) — link
- Automated Market Makers and Decentralized Exchanges: a DeFi Primer (2020) — link
- Augmenting Batch Exchanges with Constant Function Market Makers (2023) — link
- Risks and Returns of Uniswap V3 Liquidity Providers (2022) — link
- Arbitrum: Scalable, private smart contracts (2018) — link
- Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges (2019) — link
- Discrimination of Toxic Flow in Uniswap V3
- Stablecoin Volume Hits Record High of $ 7.4T in 2022
- Stablecoin volume outpaces Mastercard, PayPal as digital payments wars loom
- The Relentless Rise of Stablecoins
- Uniswap-v3 TVL comparison for stable coins vs non-stablecoins
- DODO Integrates Chainlink Live on Mainnet, Kickstarts the On-Chain Liquidity Revolution
- Liquidity Provision by Automated Market Makers (2020) — link
- Automated Market Making and Loss-Versus-Rebalancing (2022) — link
- Stochastic Variational Inference (2013) — link
- An Electronic Market-Maker (2001)
- SoK (2021) — link
- A Myersonian Framework for Optimal Liquidity Provision in Automated Market Makers (2023) — link
- The Dynamics of Dealer Markets Under Competition (1983)
- Bid, ask and transaction prices in a specialist market with heterogeneously informed traders (1985) — link
- QLAMMP: A Q-Learning Agent for Optimizing Fees on Automated Market Making Protocols (2022) — link
- Adapting to a market shock: Optimal sequential market-making (2008)
- Playing Atari with Deep Reinforcement Learning (2013) — link
- A learning market-maker in the Glosten–Milgrom model (2005)
- Q-learning (1992)
- High Frequency Trading in a Limit Order Book (2008) — link
- An Axiomatic Characterization of CFMMs and Equivalence to Prediction Markets (2023) — link
- Strategic Bonding Curves in Automated Market Makers (2024) — link
- Predictable Losses of Liquidity Provision in Constant Function Markets and Concentrated Liquidity Markets (2023) — link
- Probabilistic Functions of Finite State Markov Chains (1969)
- Random Walk–1-Dimensional, Wolfram Mathworld
- Continuous Auctions and Insider Trading (1985)
- Liquidity and Market Structure (1988) — link
1 of 90 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2518 linked papers.