If a CoW Swap order is still open, request cancellation as soon as you decide to stop it; choose an on-chain cancellation when you want the contract to invalidate it and accept a network fee. Neither method can reverse a trade that has already settled, and either can lose a race with a settlement being sent.
What does cancelling an open order do?
An open order is your signed instruction to trade tokens under set conditions. CoW Swap collects orders into auctions, where solvers—systems that find trades—compete to settle them together. Settlement is the final on-chain trade.
If you are checking an order through the cowswap interface, find it in your open orders and choose “Cancel order.” That is a practical example of using cowswap to manage a trade you have already placed. CoW Protocol’s cancellation instructions say the usual off-chain request is free, but it is processed by the order service and is not instant.
Which cancellation should you choose?
Choose off-chain cancellation for a quick, free request; choose on-chain cancellation if you want the blockchain contract to record that the order is invalid. “Off-chain” means the request is handled outside the blockchain. “On-chain” means a blockchain transaction changes the order’s validity. Ethereum.org describes the network fee for that transaction as gas; your wallet shows the fee before you confirm.
For example, say you placed an order to sell 100 USDC and 40 USDC have already traded. Cancelling can stop the remaining 60 only if cancellation takes effect before that part settles; it cannot undo the 40 already traded. Check the order details for a partial fill, meaning only part of the order was completed.
How can you tell whether it worked?
After requesting cancellation, check the order’s status and history in cowswap. Wait for it to show as cancelled before treating the remaining amount as safe to use. If you chose on-chain cancellation, also check that the wallet’s transaction is confirmed; a pending transaction has not yet taken effect.
There is a race either way: a solver may submit settlement before the off-chain request is processed or before the on-chain transaction confirms. CoW Protocol’s instructions warn that even an on-chain cancellation can arrive too late. Before acting, ask yourself: has the order’s remaining amount actually been cancelled, or is the trade still able to settle?
Top comments (0)