Liquidity Pools as Mean Field Games with Transaction Costs
Agustín Muñoz González · 2026
Read Liquidity Pools as Mean Field Games with Transaction Costs by Agustín Muñoz González (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-16529.txt.
Introduction
Muñoz adds transaction costs to a mean field game model of liquidity pools. Traders in a constant product market maker were modeled as a mean field game before. Pool fees change how traders hold inventory. Traders now act at a mid-price shifted by those costs. The DAI inventory follows a new dynamic. Muñoz proves that equilibria exist for the new game. He also works out trader strategies and the conditions for existence.
Catalog record
| CREATOR | Agustín Muñoz González |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 37619 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2603.16529
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Liquidity Pools as Mean Field Games with Transaction Costs Agustín Muñoz González Abstract This paper extends the theoretical framework introduced in Liquidity Pools as Mean Field Games: A New Framework , where the interactions among traders in a constant product market-making protocol were modeled using mean field games (MFG). In this extension, transaction costs are incorporated into the traders’ inventory dynamics, modeling the impact of pool fees on trading decisions. Traders operate at a mid-price adjusted for transaction costs, introducing a new dynamic for the DAI inventory. The existence of MFG solutions for this new trader game is established, taking these additional costs into account. The traders’ optimization strategies and the conditions for equilibrium existence are discussed, providing a solid foundation for future research. Keywords— Mean field games, transaction costs, liquidity pools, automated market makers, approximate Nash equilibrium, mean field equilibrium, decentralized finance 1 Introduction In this work, we extend the model introduced in Liquidity Pools as Mean Field Games: A New Framework , incorporating transaction costs into the dynamics of traders operating within a constant product liquidity pool. In the baseline model, traders seek to maximize their inventory by trading against the reserves of the ETH-DAI pool. However, in this new approach, we consider that traders face additional costs when executing transactions, which affect both the price and their optimal strategies. Transaction costs are modeled as a spread between the bid price and the ask price , meaning that traders buy at a higher price and sell at a lower price than the pool’s equilibrium price. This introduces a new dynamic into the traders’ inventory, requiring them to optimize their strategies while considering the impact of fees on their buy and sell decisions. The trader’s new utility function incorporates these costs, adjusting their DAI inventory based on a mid-price adjustment. Despite the inclusion of transaction costs, the model preserves the relationship between price and pool reserves, maintaining the traditional equilibrium structure where X_{t}Y_{t}=k_{t} , but with an invariant k_{t} that now depends on the accumulated fees in the pool. The primary goal of this work is to establish the existence of a mean field equilibrium for this trader game with transaction costs, using techniques similar to those developed in the original model. The traders’ optimization strategies and equilibrium conditions are rigorously presented, laying a strong foundation for future extensions of the model. 2 Model Formulation We work on the filtered probability space (\Omega,\mathcal{F}_{T},\mathbb{F},\mathbb{P}) supporting N+1 mutually independent Wiener processes W_{0},\dotsc,W_{N} . As in the baseline model of [ 2 ] , we consider N traders who operate in a liquidity pool holding two tokens, ETH and USDT. Let X_{t}^{i} and Y_{t}^{i} denote the ETH and USDT inventories, respectively, of the i -th trader at time t . The ETH inventory dynamics for trader i are given by dX_{t}^{i}=\alpha_{t}^{i}\,dt+\sigma^{i}\,dW_{t}^{i}, (1) where \alpha_{t}^{i}:[0,T]\to\mathbb{R} is the trading rate (the control); \sigma^{i} denotes the individual volatility, assumed independent of i for simplicity; and \sigma^{i}dW_{t}^{i} captures random fluctuations in the trader’s holdings due to exogenous market events or wallet-level noise. In the baseline model, the USDT inventory dynamics were given by dY_{t}^{i}=-(\alpha_{t}^{i}P_{t}+c_{p}(\alpha_{t}^{i}))\,dt, with P_{t} the pool’s equilibrium price of ETH in USDT at time t . Here, we explicitly incorporate the transaction cost incurred by traders when using the pool’s swap service. Specifically, when selling, a trader receives the bid price p^{b}<P , and when buying, pays the ask price p^{a}>P . Since the model does not inherently distinguish buy from sell orders, we follow [ 3 ] (Eq. (15)) and assume trades occur at the mid-price \tilde{P}:=\frac{p^{a}+p^{b}}{2} . We therefore propose the following USDT inventory dynamics: dY_{t}^{i}=-\alpha_{t}^{i}\,\tilde{P}_{t}\,dt. From [ 3 ] we have the identities p^{a}=\frac{1}{\phi}P and p^{b}=\phi P , where \phi=1-\tau and 0<\tau<1 is the pool fee. Hence \tilde{P}=\frac{1+\phi^{2}}{2\phi}P, and the USDT inventory dynamics for trader i become dY_{t}^{i}=-\alpha_{t}^{i}\,\frac{1+\phi^{2}}{2\phi}\,P_{t}\,dt. (2) Although transaction costs are now present, once a swap is executed and fees are added to the pool, the equilibrium price continues to satisfy P_{t}=\frac{Y_{t}}{X_{t}}, (3) where X_{t} and Y_{t} are the ETH and USDT reserves in the pool, respectively. Note that, because of the fee mechanism, the “constant” k_{t} is no longer constant: fees paid by traders accumulate in the pool, causing k_{t} to increase over time. The constant-product relation, however, still holds: X_{t}Y_{t}=k_{t}. (4) In a pool with transaction costs, trades proceed in two stages. Suppose that at time t>0 a trade of \Delta_{t}^{X} ETH units is submitted. In the first stage, the pool computes the corresponding USDT output \Delta_{t}^{Y} via k_{0}=(X_{0}+\phi\Delta_{t}^{X})(Y_{0}-\Delta_{t}^{Y})\quad\Rightarrow\quad\Delta_{t}^{Y}=-\frac{k_{0}}{X_{0}+\phi\Delta_{t}^{X}}+Y_{0}. In the second stage, the fees are added to the pool and the invariant is updated: k_{t}=X_{t}Y_{t}=(X_{0}+\Delta_{t}^{X})(Y_{0}-\Delta_{t}^{Y})=\frac{(X_{0}+\Delta_{t}^{X})\,k_{0}}{X_{0}+\phi\Delta_{t}^{X}}. Combining ( 3 ) and ( 4 ), the price equation becomes P_{t}=\frac{k_{0}}{(X_{0}+\phi\Delta_{t}^{X})(X_{0}+\Delta_{t}^{X})}. (5) Following the methodology of the simpler model, we model the ETH balance inside the pool via the average of the agents’ controls: X_{t}:=X_{0}-\frac{1}{N}\sum_{i=1}^{N}\int_{0}^{t}\alpha_{s}^{i}\,ds, (6) where X_{0} is the initial token supply provided by the liquidity provider. For model consistency it is essential that X_{t}\neq 0 for all t\in[0,T] , as the pool must always retain a minimum reserve. Remark . In Section 3.1 , after verifying hypothesis (S.4) , we will have X_{t}\neq 0 for all t\in[0,T] . Hence the pool maintains at least a minimum token fraction at every moment: X_{t}\geq\epsilon_{0},\quad\forall\,t\in[0,T], (7) for some \epsilon_{0}>0 . Setting \Delta_{t}^{X}=-\frac{1}{N}\sum_{i=1}^{N}\int_{0}^{t}\alpha_{s}^{i}\,ds , the price dynamics become \displaystyle dP_{t} \displaystyle=d\!\left(\frac{k_{0}}{(X_{0}+\phi\Delta_{t}^{X})(X_{0}+\Delta_{t}^{X})}\right)dt+\sigma^{0}\,dW_{t}^{0} (8) \displaystyle=k_{0}\!\left(\frac{1}{N}\sum_{i=1}^{N}\alpha_{t}^{i}\right)\frac{(1+\phi)X_{0}+2\phi\Delta_{t}^{X}}{(X_{0}+\Delta_{t}^{X})^{2}(X_{0}+\phi\Delta_{t}^{X})^{2}}\,dt+\sigma^{0}\,dW_{t}^{0}, where W_{t}^{0} is a Wiener process, \sigma^{0} is a constant volatility, and \sigma^{0}dW_{t}^{0} represents exogenous price shocks. Remark . By writing \Delta_{t}^{X}=-\frac{1}{N}\sum_{i=1}^{N}\int_{0}^{t}\alpha_{s}^{i}\,ds inside the price dynamics, we are treating all trades in [0,t] as a single aggregate transaction \Delta_{t}^{X} . Although the trader executes orders at the mid-price \tilde{P} , portfolio valuation is performed at the pool’s arbitraged equilibrium price P . The total inventory of trader i at time t is therefore defined, as in the baseline model, by V_{t}^{i}=Y_{t}^{i}+X_{t}^{i}P_{t}. Applying Itô’s lemma gives \displaystyle dV_{t}^{i} \displaystyle=dY_{t}^{i}+X_{t}^{i}\,dP_{t}+dX_{t}^{i}\,P_{t} (9) \displaystyle=\left[X_{t}^{i}\,k_{0}\!\left(\frac{1}{N}\sum_{i=1}^{N}\alpha_{t}^{i}\right)\frac{(1+\phi)X_{0}+2\phi\Delta_{t}^{X}}{(X_{0}+\Delta_{t}^{X})^{2}(X_{0}+\phi\Delta_{t}^{X})^{2}}\right. \displaystyle\left.+\,\alpha_{t}^{i}\!\left(1-\frac{1+\phi^{2}}{2\phi}\right)\frac{k_{0}}{(X_{0}+\Delta_{t}^{X})(X_{0}+\phi\Delta_{t}^{X})}\right]dt \displaystyle+X_{t}^{i}\,\sigma^{0}\,dW_{t}^{0}+P_{t}\,\sigma^{i}\,dW_{t}^{i}. We assume that agents are risk-neutral and seek to maximize their expected profit from trading in the decentralized market: J^{i}(\alpha^{1},\dotsc,\alpha^{N})=\mathbb{E}\!\left[V_{T}^{i}-\int_{0}^{T}h(t,X_{t}^{i})\,dt-l(X_{T}^{i})\right], (10) where h:[0,T]\times\mathbb{R}\to\mathbb{R} represents the cost of holding inventory x at time t , and l:\mathbb{R}\to\mathbb{R} is a terminal inventory cost. Working spaces Before formulating the mean field game for infinitely many traders, we introduce the relevant functional spaces. • Let (\Omega,\mathcal{F},\mathbb{F}=(\mathcal{F}_{t})_{0\leq t\leq T},\mathbb{P}) be a complete filtered probability space supporting a one-dimensional Wiener process \bm{W}=(W_{t})_{0\leq t\leq T} and an initial condition \xi\in L^{2}(\Omega,\mathcal{F}_{0},\mathbb{P};\mathbb{R}) . • Let \mathcal{C}:=C([0,T];\mathbb{R}) be the space of continuous real-valued functions on [0,T] , equipped with the supremum norm \|x\|:=\sup_{s\in[0,T]}|x(s)| . • Given \mathcal{P}(\mathbb{R}) , the space of probability measures on \mathbb{R} , and a measurable function \psi:\mathcal{C}\to\mathbb{R} , define \displaystyle\mathcal{P}_{\psi}(\mathbb{R}) \displaystyle=\left\{\mu\in\mathcal{P}(\mathbb{R}):\int\psi\,d\mu<\infty\right\}, \displaystyle B_{\psi}(\mathbb{R}) \displaystyle=\left\{f:\Omega\to\mathbb{R}:\sup_{\omega}|f(\omega)|/\psi(\omega)<\infty\right\}. We equip \mathcal{P}_{\psi}(\mathbb{R}) with the weakest topology \tau_{\psi}(\mathbb{R}) making the map \mu\mapsto\int f\,d\mu continuous for every f\in B_{\psi}(\mathbb{R}) . • Let the control space A\subset\mathbb{R} be a bounded subset, and let \mathbb{A}=\{\alpha:[0,T]\times\Omega\to A:\text{progressively measurable}\} be the set of admissible controls. As in [ 2 ] , all control functions \alpha are considered in closed-loop form. • Finally, let \mathcal{P}(A) be the space of probability measures over A , equipped with the weak topology \tau(A) that makes q\mapsto\int_{A}f\,dq continuous for each f\in B(A) . Throughout the paper we