IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2507.10149.html
   My bibliography  Save this paper

A Coincidence of Wants Mechanism for Swap Trade Execution in Decentralized Exchanges

Author

Listed:
  • Abhimanyu Nag
  • Madhur Prabhakar
  • Tanuj Behl

Abstract

We propose a mathematically rigorous framework for identifying and completing Coincidence of Wants (CoW) cycles in decentralized exchange (DEX) aggregators. Unlike existing auction based systems such as CoWSwap, our approach introduces an asset matrix formulation that not only verifies feasibility using oracle prices and formal conservation laws but also completes partial CoW cycles of swap orders that are discovered using graph traversal and are settled using imbalance correction. We define bridging orders and show that the resulting execution is slippage free and capital preserving for LPs. Applied to real world Arbitrum swap data, our algorithm demonstrates efficient discovery of CoW cycles and supports the insertion of synthetic orders for atomic cycle closure. This work can be thought of as the detailing of a potential delta-neutral strategy by liquidity providing market makers: a structured CoW cycle execution.

Suggested Citation

  • Abhimanyu Nag & Madhur Prabhakar & Tanuj Behl, 2025. "A Coincidence of Wants Mechanism for Swap Trade Execution in Decentralized Exchanges," Papers 2507.10149, arXiv.org.
  • Handle: RePEc:arx:papers:2507.10149
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2507.10149
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Semyon Malamud & Marzena Rostek, 2017. "Decentralized Exchange," American Economic Review, American Economic Association, vol. 107(11), pages 3320-3362, November.
    2. Vijay Mohan, 2022. "Automated market makers and decentralized exchanges: a DeFi primer," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-48, December.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Babus, Ana & Parlatore, Cecilia, 2022. "Strategic fragmented markets," Journal of Financial Economics, Elsevier, vol. 145(3), pages 876-908.
    2. Eduard Hartwich & Alexander Rieger & Johannes Sedlmeir & Dominik Jurek & Gilbert Fridgen, 2023. "Machine economies," Electronic Markets, Springer;IIM University of St. Gallen, vol. 33(1), pages 1-13, December.
    3. Arman Abgaryan & Utkarsh Sharma, 2024. "IntraLayer: A Platform of Digital Finance Platforms," Papers 2412.07348, arXiv.org.
    4. Son, Bumho & Lee, Yunyoung & Jang, Huisu, 2025. "A two-stage game model of probabilistic price manipulation in decentralized exchanges," Economic Modelling, Elsevier, vol. 147(C).
    5. Joseph, Andreas & Vasios, Michalis, 2022. "OTC Microstructure in a period of stress: A Multi-layered network approach," Journal of Banking & Finance, Elsevier, vol. 138(C).
    6. Shuo Liu, 2024. "Social Optimal Search Intensity in Over-the-Counter Markets," Review of Economic Dynamics, Elsevier for the Society for Economic Dynamics, vol. 53, pages 224-282, July.
    7. Annetta Ho & Cosmin Cazan & Andrew Schrumm, 2024. "The Ecology of Automated Market Makers," Discussion Papers 2024-12, Bank of Canada.
    8. Sofia Priazhkina & Samuel Palmer & Pablo Martín-Ramiro & Román Orús & Samuel Mugel & Vladimir Skavysh, 2024. "Digital Payments in Firm Networks: Theory of Adoption and Quantum Algorithm," Staff Working Papers 24-17, Bank of Canada.
    9. Eisenschmidt, Jens & Ma, Yiming & Zhang, Anthony Lee, 2024. "Monetary policy transmission in segmented markets," Journal of Financial Economics, Elsevier, vol. 151(C).
    10. Matthias Nadler & Felix Bekemeier & Fabian Schar, 2022. "DeFi Risk Transfer: Towards A Fully Decentralized Insurance Protocol," Papers 2212.10308, arXiv.org.
    11. Masaaki Fukasawa & Basile Maire & Marcus Wunsch, 2025. "Liquidity provision of utility indifference type in decentralized exchanges," Digital Finance, Springer, vol. 7(2), pages 255-273, June.
    12. Babus, Ana & Hachem, Kinda, 2021. "Regulation and security design in concentrated markets," Journal of Monetary Economics, Elsevier, vol. 121(C), pages 139-151.
    13. Michail Anthropelos & Constantinos Kardaras, 2018. "Price Impact Under Heterogeneous Beliefs and Restricted Participation," Papers 1802.09954, arXiv.org, revised Dec 2023.
    14. Philippe Bergault & Louis Bertucci & David Bouba & Olivier Guéant, 2024. "Automated market makers: mean-variance analysis of LPs payoffs and design of pricing functions," Digital Finance, Springer, vol. 6(2), pages 225-247, June.
    15. Rainone, Edoardo, 2020. "The network nature of over-the-counter interest rates," Journal of Financial Markets, Elsevier, vol. 47(C).
    16. Erdong Chen & Mengzhong Ma & Zixin Nie, 2024. "Exploring the Impact: How Decentralized Exchange Designs Shape Traders' Behavior on Perpetual Future Contracts," Papers 2402.03953, arXiv.org, revised Apr 2024.
    17. Julien Hugonnier & Benjamin Lester & Pierre-Olivier Weill, 2020. "Frictional Intermediation in Over-the-Counter Markets," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 87(3), pages 1432-1469.
    18. Colin von Negenborn, 2023. "The more the merrier? On the optimality of market size restrictions," Review of Economic Design, Springer;Society for Economic Design, vol. 27(3), pages 603-634, September.
    19. Glebkin, Sergei & Kuong, John Chi-Fong, 2023. "When large traders create noise," Journal of Financial Economics, Elsevier, vol. 150(2).
    20. Ravi Kashyap, 2024. "The Concentration Risk Indicator: Raising the Bar for Financial Stability and Portfolio Performance Measurement," Papers 2408.07271, arXiv.org.

    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:arx:papers:2507.10149. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.