Decentralized exchanges (DEXs) provide a means for users to trade pairs of assets on-chain without the need for a trusted third party to effectuate a trade. Amongst these, constant function market maker DEXs such as Uniswap handle the most volume of trades between ERC-20 tokens. With the introduction of Uniswap v3, liquidity providers can differentially allocate liquidity to trades that occur within specific price intervals. In this paper, we formalize the profit and loss that liquidity providers can earn when providing specific liquidity allocations to a v3 contract. We give a convex stochastic optimization problem for computing optimal liquidity allocation for a liquidity provider who holds a belief on how prices will evolve over time and use this to study the design question regarding how v3 contracts should partition the price space for permissible liquidity allocations. Our results show that making a greater diversity of price-space partitions available to a contract designer can simultaneously benefit both liquidity providers and traders.
翻译:分散化交易所(DEXs)为用户提供了一种手段,在不需要受信任的第三方进行交易的情况下交换链上的资产,其中,Uniswap等经常功能性市场DEXs(DEXs)处理ESRC-20象征性交易量最大的交易量。随着Unswap v3的引入,流动性提供者可以将流动性分配到特定价格间隔内发生的交易中。在本文件中,我们正式确定流动性提供者在向V3合同提供特定流动性分配时能够赚取的利润和损失。我们给出了一个螺旋形优化问题,用于计算流动性提供者的最佳流动性分配,因为后者对价格如何随时间演变持有信念,并利用它研究关于V3合同如何分配允许流动性分配的价格空间的设计问题。我们的结果显示,向合同设计者提供更大程度的价格-空间分配分配办法既有利于流动性提供者,又有利于交易者。