TY - GEN
T1 - Adaptive Curves for Optimally Efficient Market Making
AU - Nadkarni, Viraj
AU - Kulkarni, Sanjeev Ramesh
AU - Viswanath, Pramod
N1 - Publisher Copyright:
© Viraj Nadkarni, Sanjeev Kulkarni, and Pramod Viswanath.
PY - 2024/9
Y1 - 2024/9
N2 - 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.
AB - 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.
KW - Adaptive
KW - Automated market makers
KW - Decentralized Finance
KW - Glosten-Milgrom
UR - http://www.scopus.com/inward/record.url?scp=85204468419&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85204468419&partnerID=8YFLogxK
U2 - 10.4230/LIPIcs.AFT.2024.25
DO - 10.4230/LIPIcs.AFT.2024.25
M3 - Conference contribution
AN - SCOPUS:85204468419
T3 - Leibniz International Proceedings in Informatics, LIPIcs
BT - 6th Conference on Advances in Financial Technologies, AFT 2024
A2 - Bohme, Rainer
A2 - Kiffer, Lucianna
PB - Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
T2 - 6th Conference on Advances in Financial Technologies, AFT 2024
Y2 - 23 September 2024 through 25 September 2024
ER -