IDEAS home Printed from https://ideas.repec.org/p/hal/wpaper/hal-04800479.html
   My bibliography  Save this paper

On-chain optimal aggregation of Uniswap v3 clones

Author

Listed:
  • Vincent Danos

    (DI-ENS - Département d'informatique - ENS-PSL - ENS-PSL - École normale supérieure - Paris - PSL - Université Paris Sciences et Lettres - Inria - Institut National de Recherche en Informatique et en Automatique - CNRS - Centre National de la Recherche Scientifique)

  • Leo Murao Watson

    (University of Toronto)

  • Hamza El Khalloufi

    (UP1 - Université Paris 1 Panthéon-Sorbonne)

  • Santiago Valencia

Abstract

In this paper we define a simple and efficient "push-and-solve" algorithm to compute the best execution or "optimal split" of a market order given a finite set of AMMs. Each AMM has to be decomposable into basic building blocks which we call price-parametrised AMMs. This has a practical application to the optimal splitting of orders among Uniswap v3 clones, as the algorithm is query-optimal (information on sources is queried on a call-by-need basis) and therefore of low enough complexity to be implemented as a smart contract. We also find a sufficient condition for AMMs based on price parametrisations to be aggregatable which is of independent interest as it allows one to build novel AMMs with concentrated liquidity, families of which can also be optimally executed on-chain.

Suggested Citation

  • Vincent Danos & Leo Murao Watson & Hamza El Khalloufi & Santiago Valencia, 2024. "On-chain optimal aggregation of Uniswap v3 clones," Working Papers hal-04800479, HAL.
  • Handle: RePEc:hal:wpaper:hal-04800479
    Note: View the original document on HAL open archive server: https://hal.science/hal-04800479v1
    as

    Download full text from publisher

    File URL: https://hal.science/hal-04800479v1/document
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:hal:wpaper:hal-04800479. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: CCSD (email available below). General contact details of provider: https://hal.archives-ouvertes.fr/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.