Thorough mathematical modelling and analysis of Uniswap v3
Résumé
Automated Market Markers 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 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 assumed to be constant over time, which strongly contradicts the mechanism of the protocol. The objectives of this work are fourfold: first, to revisit Uniswap v3's mechanisms 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, in full generality on the swap trades and the liquidity events than can occur. Third, we introduce the notion of a liquidity curve. For each curve, we can deduce 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) under 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
Thorough_mathematical_modelling_and_analysis_of_Uniswap_v3_HAL.pdf (939.19 Ko)
Télécharger le fichier
Origine | Fichiers produits par l'(les) auteur(s) |
---|