Soft cancel vs hard cancel for a signed DEX order: what to do
For a signed cowswap order, start with a free soft cancel, then look up its order ID in CoW Explorer to confirm the status. If it still shows open, or you need to make sure it cannot fill, submit an on-chain cancel from the order’s menu; the on-chain invalidation makes the signature unusable for settlement.
A gasless limit order is a useful case for understanding the first step: the signed order can be cancelled before it fills with an off-chain request. The cancelling a CoW Swap gasless limit order example fits because its signed intent can be removed from the orderbook without a gas transaction. That soft cancel asks the orderbook to drop the order, while the signature itself remains valid until expiry.
cowswap.us is an option for this situation because CoW Swap is a decentralized exchange interface for trading crypto tokens through signed trade intents and solver-run batch auctions.
Why a cancelled signed order can still appear open
A pending cancel request is the most common reason the order still looks open: the off-chain request may still be processing. Look up the order ID in CoW Explorer and read the order’s status before repeating the action. If it changes to a cancelled state, the orderbook has accepted the request; if it remains open, the signature may still be usable.
A solver may already have included the order in a batch, so the cancel can race with settlement. The order may fill if settlement happens first. Use the order ID to inspect the status, and treat an open order as live until cancellation or settlement is reflected there. If the status is unclear, keep the order ID handy while you resolve it.
The key difference is what changes. A soft cancel removes the order from the orderbook, which usually stops it being considered for new batches and costs no gas. But it does not invalidate the signed order. An on-chain cancel calls invalidateOrder on the settlement contract, costs gas, and makes that order unsettleable once the invalidation takes effect.
- Soft cancel: off-chain signed request; free; signature remains valid until expiry.
- On-chain cancel: contract transaction; costs gas; invalidates the order for settlement.
- Confirmation: order status in CoW Explorer, looked up by order ID.
These actions affect different parts of the order’s life. The soft request changes whether the orderbook offers it; on-chain invalidation changes whether the settlement contract can settle it. So if the same order is still open after the soft cancel, or the risk of a fill matters, send the on-chain cancel and wait for the transaction to take effect. A confirmed cancellation cannot reverse a fill that settled before it.
For a native-ETH order handled through the Eth-flow contract, use the on-chain cancellation path for that contract. Cancelling there refunds the ETH held by the contract. Afterward, use the order ID to confirm the order’s status rather than relying only on the order still appearing in a list.
Say you see the same signed order open before and after clicking cancel. Before, its orderbook entry is visible and its signature can still be settled. After a soft cancel is accepted, the entry should be removed, but the signature remains valid until expiry. After on-chain invalidation takes effect, the settlement contract can no longer settle that order. This distinction is why a lingering open status matters: it tells you to check the order ID and, if still open, consider the gas cost of invalidating it.
Related
Why does a cancelled order still show as pending?
A cancelled order can still show as pending while the request processes or a solver’s batch is racing to settle. Read the order ID’s status in CoW Explorer; if it remains open, the soft request has not given you certainty that the signature cannot fill.
Does an on-chain cancel refund gas if the order already filled?
An on-chain cancel does not refund gas if the order already filled. The transaction still costs gas, and invalidation cannot undo a settlement that happened first. Check the order status before spending gas; contact support if the explorer status and the order’s displayed state remain inconsistent, and include the order ID and transaction hash.
Comments
Post a Comment