Start typing to search this publication.
How to Stake on QuickSwap
Open menu

Subscribe to How to Stake on QuickSwap

Get new posts delivered straight to your inbox.

How to Cancel a Gasless Limit Order Before It Fills: Verify It

How to Stake on QuickSwap
2 min read

Your 1 ETH-sized limit order at 4,000 USDC is still open: cancel it from Orders before another fill. In cowswap, the signed limit-order feature lets you open the order, choose Cancel order, request a free off-chain cancellation, and sign it in your wallet. Once its status reads Cancelled in order history or under its order ID in CoW Explorer, the unfilled amount is stopped. You can instead choose an on-chain cancellation in the same dialog and pay gas to invalidate the order in the settlement contract.

  • Result: the order can no longer fill once cancellation takes effect; any completed trades remain settled.

  • What you need: the wallet and chain used to place the order, plus native-token gas if you choose on-chain cancellation.

How Do You Cancel an Open Limit Order?

To cancel an open limit order, connect the wallet on the chain where you placed it, open Orders in cowswap, and find the order in your open list. Use its menu to select Cancel order. Keep the off-chain option selected, choose Request cancellation, and approve the cancellation signature in your wallet.

The order itself is an EIP-712 signed message: a structured instruction that authorizes a trade at your chosen terms. Placing it costs no gas, and your tokens stay in your wallet until a trade settles. The free cancellation tells CoW Protocol’s order book to stop offering that instruction. Wait for the status to change to Cancelled, since a solver may settle the order while the off-chain request is being processed.

Choosing on-chain cancellation instead prompts a wallet transaction. After confirmation, the settlement contract’s invalidateOrder call makes that order unusable on-chain. The transaction costs gas in the chain’s native token and can still lose the race to a settlement before it confirms. Your wallet shows the practical difference: the off-chain route asks for a signature with no gas fee; the on-chain route shows a transaction and gas estimate. Treating a submitted off-chain request as an already confirmed on-chain invalidation could leave you expecting the order to have stopped too soon.

What Happens If Part of the Order Has Filled?

Cancelling a partially fillable order stops only its unfilled remainder; completed trades stay settled. Say you offered to sell 1 ETH worth of wrapped ETH (WETH) at 4,000 USDC per ETH. If 0.4 ETH worth has sold, cancellation stops the remaining 0.6 ETH worth from selling under that order. The earlier sale and the USDC received remain in your trade history.

CoW Swap makes limit orders partially fillable by default. Look at both the filled amount and the Cancelled status when reviewing this order. Cancelled means the order cannot make another trade; it does not reverse the 0.4 ETH worth already sold.

Does an expired limit order cost anything?

An expired limit order costs no gas merely because its deadline passes. Placing the signed order was free, too. Any part that filled before expiry remains a completed trade; a token approval you made earlier was a separate transaction.

How Do I Revoke a Token Approval After Cancelling?

To revoke a token approval, use your wallet’s approval controls or an allowance manager on the same chain. Find the sell token’s approval for CoW Protocol’s vault relayer and set its allowance to zero. Revocation costs native-token gas and also affects future orders that rely on that approval. Confirm this order says Cancelled first, then decide whether to keep or revoke the allowance.

Subscribe to How to Stake on QuickSwap