A Coincidence of Wants Mechanism for Swap Trade Execution in Decentralized Exchanges
This paper presents a mathematically rigorous framework for identifying and completing Coincidence of Wants (CoW) cycles in decentralized exchanges (DEXs) using graph theory and linear algebra. The proposed algorithm aims to detect both complete CoW cycles and generate "bridging orders" to complete partial ones, demonstrating its application on a small real-world Arbitrum swap dataset.