Abstract
Automated Market Makers (AMMs) have fundamentally altered the landscape of decentralized finance, yet their development has largely relied on ad-hoc designs optimized for two-asset pairs. This paper introduces the first unified mathematical framework for liquidity provisioning in markets with an arbitrary number of assets. By conceptualizing liquidity providers (LPs) as parallel market makers whose individual cost functions are aggregated into a single market, the authors provide a rigorous foundation for generalizing protocols like Uniswap to complex, multi-outcome scenarios such as prediction markets.
Introduction
In the current decentralized finance (DeFi) ecosystem, Automated Market Makers (AMMs) like Uniswap have become the standard for asset exchange. However, these systems are primarily designed for simple pairs (e.g., ETH/USDC). When applied to prediction markets—which often involve multiple mutually exclusive outcomes, such as an election with several candidates—current AMM designs struggle. Existing solutions either require LPs to provide liquidity across an entire price range, which is capital inefficient, or utilize "buckets" that become mathematically and operationally unwieldy as the number of assets ($n$) increases. This research addresses the lack of a general theory explaining how LPs should deposit assets to provide specific liquidity "shapes" for $n$ assets and proves the equivalence of various liquidity provisioning methods.
The Parallel Market Making Framework
The core of the proposed theory is the concept of parallel market making. Rather than viewing an AMM as a single monolithic pool, the authors model the system as a collection of individual LPs, each running their own "mini-market." The paper demonstrates that several distinct methods of interacting with these LPs are mathematically identical:
- Infimal Convolution: This involves merging individual LP cost functions into a single "master" cost function that consistently offers the best possible marginal price to traders.
- Summing Scoring Rules: In the dual space, this corresponds to adding the "generating functions" (related to scoring rules) of each individual LP.
- Continuous Arbitrage: A theoretical model where a rational trader continuously buys from whichever LP offers the most favorable marginal price, eventually equalizing the market.
By proving the equivalence of these perspectives, the authors provide a robust theoretical foundation for designing decentralized markets where LPs can operate independently while contributing to a unified, efficient price discovery mechanism.
Redefining Liquidity in High Dimensions
A significant contribution of this work is the transition from viewing liquidity as a scalar value to viewing it as a matrix. In a standard two-asset market, liquidity is often represented by a single parameter (such as Uniswap’s $L$). However, in a market with $n$ assets, the authors argue that liquidity must be defined by the Hessian matrix of the market's generating function.
This matrix-based approach allows for a more nuanced understanding of market depth. It quantifies how "deep" a market is in specific directions—for instance, how much the price of "Candidate A" shifts when a trader sells "Candidate B." A single scalar cannot capture these cross-asset sensitivities, making the Hessian matrix essential for managing multi-outcome prediction markets.
Recovering and Extending DeFi Protocols
The framework is not merely theoretical; it successfully "recovers" the history of DeFi protocols as specific instances of the general theory. The authors show that:
- Uniswap V2 is a specific choice of a global generating function within this framework.
- Uniswap V3 represents a specific "bucketing" of liquidity functions, where LPs provide liquidity over concentrated ranges.
Furthermore, the theory enables Expressive Liquidity. Because the framework supports arbitrary cost functions, LPs are no longer restricted to simple buckets. They can theoretically provide liquidity that follows complex polynomial curves or "fades" in and out based on specific price triggers, allowing for much more sophisticated market-making strategies.
Key Results and Theorems
The paper culminates in several formal proofs and derivations:
- Theorem 1: This theorem formally proves the equivalence of the four different interpretations of parallel market making, ensuring that whether a market is centralized or decentralized (with rational arbitrageurs), the economic outcome remains the same.
- General Bucketing: The authors derive exact "liability vectors"—the specific amounts of assets an LP must deposit—to implement generalized versions of Uniswap V3 and Logarithmic Market Scoring Rules (LMSR) for any number of assets.
- Dimensionality Justification: Using a three-asset example, the paper demonstrates that 1D models of liquidity fail to capture essential price sensitivities, justifying the necessity of the high-dimensional matrix approach.
Limitations and Future Work
While the framework provides a comprehensive theory for trading, the authors identify several challenges for practical implementation:
- The Fee Problem: Distributing trading fees becomes mathematically non-trivial when $n > 2$. Ensuring "budget balance," where trader fees exactly match LP rewards across complex multi-asset trades, remains an open research question.
- Computational Complexity: On-chain execution of arbitrary cost functions is expensive. Future work must identify the optimal balance between the expressiveness of LP functions and the gas costs associated with blockchain computation.
- Incomplete Markets: The current theory assumes a "complete" market where every possible outcome has a corresponding security. Extending these proofs to "incomplete" markets, where only certain combinations are tradable, is a suggested next step for the field.
Summary updated