Uniswap v3: impermanent loss modeling and swap fees asymptotic analysis
Résumé
Automated Market Makers have emerged quite recently, and Uniswap is one of the most widely used platforms (it covers 60% of the total value locked on Ethereum blockchain at the time of writing this article). This protocol is challenging from a quantitative point of view, as it allows participants to choose where they wish to concentrate liquidity. There has been an increasing number of research papers on Uniswap v3 but often, these articles use heuristics or approximations that can be far from reality: for instance, the liquidity in the pool is sometimes assumed to be constant over time, which contradicts the mechanism of the protocol. The ob- jectives of this work are fourfold: first, to revisit Uniswap v3’s principles in detail (starting from the open source code) to build an unambiguous knowledge base. Second, to analyze the Im- permanent Loss of a liquidity provider by detailing its evolution, with no assumption on the swap trades or liquidity events that occur over the time period. Third, we introduce the notion of a liquidity curve. For each curve, we can construct a payoff at a given maturity, net of fees. Conversely, we show how any concave payoff can be synthetized by an initial liquidity curve and some tokens outside the pool; this paves the way for using Uniswap v3 to create options. Fourth, we analyze the asymptotic behavior of collected fees without any simplifying hypoth- esis (like a constant liquidity), under the mild assumption that the pool price coincides with a latent price (general Ito process) every time the latter changes by γ%. The asymptotic analysis is conducted as γ → 0. The value of the collected fees then coincides with an integral of call and put prices. Our derivations are supported by graphical illustrations and experiments.
Origine | Fichiers produits par l'(les) auteur(s) |
---|