DEX Specs: A Mean Field Approach to DeFi Currency Exchanges

Erhan Bayraktar, Asaf Cohen, April Nellis
{"title":"DEX Specs: A Mean Field Approach to DeFi Currency Exchanges","authors":"Erhan Bayraktar, Asaf Cohen, April Nellis","doi":"arxiv-2404.09090","DOIUrl":null,"url":null,"abstract":"We investigate the behavior of liquidity providers (LPs) by modeling a\ndecentralized cryptocurrency exchange (DEX) based on Uniswap v3. LPs with\nheterogeneous characteristics choose optimal liquidity positions subject to\nuncertainty regarding the size of exogenous incoming transactions and the\nprices of assets in the wider market. They engage in a game among themselves,\nand the resulting liquidity distribution determines the exchange rate dynamics\nand potential arbitrage opportunities of the pool. We calibrate the\ndistribution of LP characteristics based on Uniswap data and the equilibrium\nstrategy resulting from this mean-field game produces pool exchange rate\ndynamics and liquidity evolution consistent with observed pool behavior. We\nsubsequently introduce Maximal Extractable Value (MEV) bots who perform\nJust-In-Time (JIT) liquidity attacks, and develop a Stackelberg game between\nLPs and bots. This addition results in more accurate simulated pool exchange\nrate dynamics and stronger predictive power regarding the evolution of the pool\nliquidity distribution.","PeriodicalId":501478,"journal":{"name":"arXiv - QuantFin - Trading and Market Microstructure","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-04-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - QuantFin - Trading and Market Microstructure","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2404.09090","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

We investigate the behavior of liquidity providers (LPs) by modeling a decentralized cryptocurrency exchange (DEX) based on Uniswap v3. LPs with heterogeneous characteristics choose optimal liquidity positions subject to uncertainty regarding the size of exogenous incoming transactions and the prices of assets in the wider market. They engage in a game among themselves, and the resulting liquidity distribution determines the exchange rate dynamics and potential arbitrage opportunities of the pool. We calibrate the distribution of LP characteristics based on Uniswap data and the equilibrium strategy resulting from this mean-field game produces pool exchange rate dynamics and liquidity evolution consistent with observed pool behavior. We subsequently introduce Maximal Extractable Value (MEV) bots who perform Just-In-Time (JIT) liquidity attacks, and develop a Stackelberg game between LPs and bots. This addition results in more accurate simulated pool exchange rate dynamics and stronger predictive power regarding the evolution of the pool liquidity distribution.
DEX 规格:DeFi 货币交易所的平均值方法
我们通过对基于 Uniswap v3 的中心化加密货币交易所(DEX)建模,研究了流动性提供者(LPs)的行为。具有异质性特征的 LP 在面临外生流入交易规模和更广泛市场中资产价格的不确定性时,会选择最优的流动性头寸。它们之间进行博弈,由此产生的流动性分布决定了池中的汇率动态和潜在套利机会。我们根据 Uniswap 数据校准了 LP 特征的分布,这种均值场博弈产生的均衡策略产生了与观察到的池行为一致的池汇率动态和流动性演变。随后,我们引入了最大可提取价值(MEV)机器人,它们会执行即时(JIT)流动性攻击,并在 LP 和机器人之间展开堆栈博弈。这一补充使得模拟的池交换率动态更为准确,对池流动性分布的演变也有更强的预测能力。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信