Answers are grounded in this paper and cite their sources.
Decentralized exchanges (DEXs) have emerged as a promising solution to enhance trustlessness in blockchain ecosystems and mitigate security threats associated with centralized exchanges. While platforms like Uniswap offer certain advantages, their limitation to exchanging tokens within a single blockchain restricts their utility. Moreover, exchanges relying on atomic swaps, such as AtomicDEX, are susceptible to grief attacks and exhibit low success ratios. In response to these challenges, we introduce FlexiSwap, an auction-based decentralized exchange protocol that leverages atomic swaps for exchanging native tokens between smart contract-compatible blockchains. FlexiSwap stands out by combining multiple bids to facilitate one-to-many exchanges, resulting in improved exchange values, successful execution of large-volume exchanges, and an improved success ratio. The protocol incorporates a penalization mechanism to deter grief attacks, ensuring that participants cannot withdraw from an exchange without incurring a loss once the counterparty has committed its assets. We also prove the protocol’s safety, liveness, and grief prevention. Our simulation results demonstrate that combining multiple bids helps achieve better exchange values and order-matching success rates. Additionally, we implemented our protocol on Ethereum-based blockchains. The experimental results show that combining bids increases overall gas usage, but the increase in the average gas user per bid is marginal.
No takes yet. Share an insight, caveat, or question.
Singh et al. (2025) studied this question.