Thorough mathematical modelling and analysis of Uniswap v3 - Archive ouverte HAL
Pré-Publication, Document De Travail Année : 2023

Thorough mathematical modelling and analysis of Uniswap v3

Résumé

Automated Market Makers have emerged quite recently, and Uniswap is one of the most widely used platforms (it covers 96% of the available pools as of today). 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 con- tradicts the mechanism of the protocol. The objectives 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 Impermanent 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 behavior of collected fees without any simplifying hypothesis (like a constant liquidity or zero Spot-Pool spread) un- der the mild assumption that the pool price follows a general Ito price dynamic. 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.
Fichier principal
Vignette du fichier
Thorough_mathematical_modelling_and_analysis_of_Uniswap_v3_HAL2.pdf (962.5 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04214315 , version 1 (21-09-2023)
hal-04214315 , version 2 (30-09-2023)

Identifiants

  • HAL Id : hal-04214315 , version 2

Citer

Mnacho Echenim, Emmanuel Gobet, Anne-Claire Maurice. Thorough mathematical modelling and analysis of Uniswap v3. 2023. ⟨hal-04214315v2⟩
841 Consultations
2280 Téléchargements

Partager

More