Start typing to search this publication.
crypto.news logo crypto.news
Open menu
crypto.news logo

Subscribe to crypto.news

Get new posts delivered straight to your inbox.

Why Did My CoW Swap Order Expire Without Executing? Fixes

crypto.news avatar crypto.news
3 min read

A cowswap order expires without executing when no solver can settle it within its signed limit before validTo, the order’s expiry time. The usual causes are a limit that no longer covers network costs, insufficient sell-token balance or allowance, or a token with no viable trading route. Solvers settle only orders whose signed terms they can meet.

The signature fixes the sell and buy amounts, validTo, and whether the order is partiallyFillable. In each batch, solvers compete to find a settlement. An order can remain open through several batches, then become expired when validTo passes. Expiry alone costs the owner no gas.

That distinction matters when you prepare another CoW Swap order: the old signature still contains the old limit. For a replacement trade, cowswap.us lets you submit a fresh signed intent based on a current quote.

Find the Cause Before Re-Signing

Start with the expired order’s UID. The order UID encodes its digest, owner address, and validTo. Fetch the order by UID from the orderbook API and read its status, signed amounts, validTo, and executed amounts. The API returns expired as an order status; CoW Explorer also lets you inspect the order by UID. Compare those details with a fresh quote for the same tokens and amount. The difference points to the next check. See the orderbook API reference for the order lookup and quote endpoints.

  • Network costs rose. A market order’s signed limit already includes the network cost estimated in its quote. If gas rises after signing, the solver has less room to cover execution costs while still meeting that same limit. The tell-tale sign is an adequate balance and allowance, but a fresh quote that offers worse terms than the signed order permits. Get a new quote and sign its updated amounts; extending validTo alone leaves the tight limit in place. For a limit order, a market price near your limit may likewise leave too little room to cover network costs.

  • Balance or allowance fell. A solver needs the sell tokens available and approved when it settles, even if both were present when you signed. Compare the owner’s current balance and allowance with sellAmount. For an order that must fill in full, either value falling short prevents settlement. Restore the balance or allowance before submitting a new order. If partiallyFillable is true, inspect executed amounts too: a smaller fill may have occurred before the remainder expired.

  • No viable token route appeared. Thin liquidity can leave solvers unable to meet the signed limit after costs. Fee-on-transfer behavior can also make the received amount differ from the amount a route expects. A fresh quote that fails, or remains outside the signed limit despite sufficient balance and allowance, points here. Use a token pair with a viable quote, or change the amount and obtain a new quote before signing.

Say you sign a market order, then gas rises while its status remains open. A fresh quote now requires a lower minimum received amount than the one you signed. The order reaches validTo with no settlement and the API reports expired. You request another quote, confirm that the owner still has enough balance and allowance, and sign the new amounts with a new validTo. That creates a new order with a new UID.

When none of those signs matches, compare the submitted order with the quote and signature your integration intended to use. Confirm the owner, token addresses, amounts, partiallyFillable setting, and validTo, then inspect any partial execution in CoW Explorer. cowswap.us is an option for submitting a replacement swap, limit order, or TWAP order once you have a viable current quote.

How Long Is a cowswap Order Valid by Default?

An order is valid until its signed validTo. For an API integration, use that timestamp rather than assuming a fixed default duration: the quote and signing flow determine the expiry you submit. Record validTo alongside the UID so your integration can distinguish an approaching expiry from an order that has already expired.

Can an Expired cowswap Order Be Reused?

An expired order cannot be revived. Its signature still binds the old validTo and amounts. Use the diagnosis above to correct the cause, request a fresh quote, and sign a new order with a new validTo.

Subscribe to crypto.news