Cowswap

Cowswap Token Swaps Through Batch Auctions

· last updated

Cowswap routes token swaps through CoW Protocol’s batch auctions, where competing solvers find execution paths that satisfy signed trading conditions. These conditions form an intent: permission to exchange specified assets within defined price limits. The interface supports market swaps, limit orders, time-weighted average price (TWAP) orders and cross-chain swaps. Execution can combine matching user orders with external liquidity. Available funds, market conditions and execution costs determine whether an order can fill; signing alone doesn’t complete the exchange.

Order Size, Price Limits and Liquidity

Order size, available liquidity and signed price limits determine which settlements can execute. A sell order sets a minimum buy amount relative to the amount sold. A buy order limits the sell amount required for the intended purchase. The settlement contract enforces the signed price boundary. A quote estimates achievable terms before execution, while the order records the terms that the trader authorizes. Market movements can change the executable price between those states, so an estimate and a settled amount can differ.

Slippage tolerance defines the permitted deterioration from quoted terms. Price impact describes how the trade itself changes the available price, particularly when its size consumes substantial pool liquidity. Increasing tolerance widens the price range that an order permits; it doesn’t create liquidity. Solvers can split a route across liquidity sources to reduce price impact when those sources offer useful additional liquidity.

Batch Auctions and External Liquidity

CoW Protocol collects orders off-chain and auctions opportunities to settle them. Solvers submit proposals for individual orders or groups, using accessible liquidity and the batch’s trading conditions. Its fairness rules reject a grouped bid if its score for any token pair and trading direction falls below the best bid limited to that pair and direction. It selects a feasible combination with the highest total score, based on user surplus and applicable protocol fees, within the auction’s computational constraints. Cowswap supplies the trading interface; the underlying protocol handles order collection, auction coordination and settlement.

A Coincidence of Wants occurs when compatible trading demands can offset one another. Matched volume in a Coincidence of Wants can settle without using an external liquidity pool. Unmatched volume can draw on automated market makers, other aggregators and private market makers. A settlement can combine these sources. Direct matching can avoid liquidity-provider fees on the matched volume.

Cowswap: Batch Auctions and External Liquidity

Open full-size image

The signed-intent model reduces exposure to maximal extractable value (MEV), including sandwich attacks against directly submitted swaps. Solvers take responsibility for constructing transactions that meet the signed terms. CoW Hooks also allow additional calls before or after settlement, supporting integrations beyond a standalone swap. Hook execution has its own limits: a reverted hook doesn’t necessarily prevent the swap from settling.


Market, Limit and TWAP Orders

Market, limit and TWAP orders express different price and timing requirements, although their trades use the same auction infrastructure.

Market Swaps

A market swap seeks execution using quoted terms and a defined tolerance. Its signed boundary limits the acceptable price, and its validity period limits how long that authorization remains usable. Solvers still need a feasible settlement. The interface’s order history distinguishes an outstanding order from an executed trade. Submission to the order book establishes an order that can participate in auctions; it doesn’t establish that tokens have changed hands.

Limit Orders

A limit order specifies a price threshold and an expiry. The market must offer enough value to satisfy the limit while covering execution costs, so touching the limit price doesn’t ensure a fill. Partially fillable orders can execute gradually; an all-or-nothing setting requires the full specified trade. A small remainder can stay unfilled when settlement costs make that remaining amount uneconomic.

Scheduled TWAP Orders

A TWAP order divides a trade into parts scheduled over a chosen duration. Spreading those parts can reduce the price impact of executing the whole amount together. Price protection sets how far pricing may move adversely from the order’s starting benchmark. A part can remain unfilled if its price condition isn’t met during its available window. Later parts retain their schedule. Completion still depends on executable prices, available funds and sufficient allowance.


Wallet Permissions and Native Tokens

Token approvals and signed orders grant different permissions. An ERC-20 allowance defines how much the specified spender may transfer. The protocol’s vault relayer transfers sell tokens from the wallet into settlement for an ordinary ERC-20 swap. Cowswap supports approvals limited to the amount being traded. Some tokens also support approval by signature, subject to token and wallet compatibility. The spender, allowance and signed recipient affect where funds can move, so these fields deserve attention before authorization.

Native-Token Sales

Native assets don’t implement ERC-20 allowances. Where supported, Eth-flow accepts an on-chain transaction that wraps the asset and places an order. It requires upfront gas and holds the deposited asset pending execution. This interface path applies to market swaps and excludes smart contract wallets. Wrapping first provides the ERC-20 route instead. If an Eth-flow order fails, its deposited assets can return through the refund mechanism; the gas already spent creating the order remains a cost.

Wallet Types and Application Access

Safe can combine approval and order placement within one transaction through its app integration. TWAP trading for externally owned accounts launched in September 2026, so scheduled trading no longer requires a Safe. Wallet type affects the authorization and setup process. Applications can access quoting and order management through CoW Protocol’s API or SDK.

What Costs Does a Swap Quote Include?

Swap costs can include solver execution costs and protocol charges, with additional bridge costs on cross-chain routes. Solvers submit settlement transactions and account for that expense when pricing execution. Gasless ERC-20 order signing avoids a separate wallet-paid submission transaction. Approval, wrapping and native-token order creation can still require gas. An unsuccessful ordinary signed order doesn’t create a user-paid settlement transaction, although earlier setup transactions have already consumed gas.

Protocol fee policies can charge for traded volume, take a share of price improvement or combine applicable charges. The relevant benchmark and fee basis matter: a volume charge applies to the traded amount, while a price-improvement share applies to improvement over its defined benchmark. Policies and exceptions vary across networks, token pairs and order types. Surplus measures improvement over the order’s limit price; improvement over a quote uses a different benchmark. The final token amount reflects the applicable costs and charges, which a single fee percentage may not capture.


Network Support, Cross-Chain Delivery and Order Conditions

Network support controls which assets and destinations the interface can offer. Trading spans multiple EVM networks, including Ethereum, Gnosis Chain, Arbitrum and Base. Same-chain orders use liquidity available for their selected network. Cross-chain destination choices depend on the source asset and the provider’s supported routes. Bridging the same token between networks isn’t supported by the cross-chain interface. Cross-chain delivery relies on an integrated bridge provider. A token’s network and contract identity distinguish the destination asset, even when another asset uses the same ticker.

The cross-chain flow settles a swap on the origin network before initiating bridge delivery. The swap and bridge deposit can share one source-chain transaction. Quote details distinguish swap output from the bridge’s destination minimum, including the provider’s cost. An executed swap doesn’t establish destination receipt. After a bridge deposit, completion and refunds follow the provider’s rules, and swap cancellation can’t reverse that transfer. A refund that returns to the Account Proxy, the helper contract used for bridge deposits, still needs recovery to the connected wallet.

Order Conditions Before Signing

The signed amounts, spending permissions and delivery terms must describe the same intended exchange.

  • Accept a market quote only if its minimum output meets your minimum acceptable amount.
  • Allow for execution costs when evaluating a limit order’s executable price.
  • Match a TWAP’s allowance to its scheduled sell amount and its price protection to the permitted trading range.
  • Account for upfront gas when choosing native-token wrapping or Eth-flow.
  • Match a cross-chain recipient to the destination network and assess the bridge minimum separately from swap output.

Before you start with Cowswap

Can I Cancel a Signed Market or Limit Order?

Open ERC-20 market and limit orders signed off-chain by externally owned accounts support gasless off-chain cancellation. A cancellation request can race with settlement, so a pending trade may execute before the request takes effect. On-chain cancellation costs gas and also needs confirmation before it takes effect. Eth-flow orders require on-chain cancellation because their funding and order creation use that contract.

What Happens If I Transfer the Sell Tokens While an Order Is Open?

A standard signed ERC-20 order can’t settle for an amount that its wallet can no longer fund. Open orders can share the same balance, so a transfer or another fill can remove funds that an outstanding order needs. Moving funds isn’t a cancellation request. The signed authorization retains its expiry and price terms.

Are off-chain Orders Confidential?

Off-chain orders aren’t a confidentiality guarantee. The order book API exposes order and trade information, and settlements leave public blockchain records. Keeping a directly executable swap out of the public transaction queue serves a different purpose: it limits certain MEV opportunities. It doesn’t make a wallet’s trading activity anonymous.

How Can I Add a Token That isn’t in the Selector?

You can import a custom token by its contract address on the selected network. The default list doesn’t include every token, so a missing entry doesn’t automatically mean the asset is untradeable. The address must identify the intended token. Importing it changes what the interface displays; execution still requires compatible token behavior and accessible liquidity.

What Is the COW Token Used For?

COW is the governance token for CoW DAO. Holders can participate in governance decisions about the protocol’s direction and policies. That governance role is separate from the token allowances and signed trading conditions that authorize an individual swap.

Does Cowswap Offer Trade Alerts Through Telegram?

Cowswap offers Telegram notifications for supported order types. The September 2026 rollout covers swaps, limit orders including partial fills and Safe-based TWAP orders. Alerts include execution and expiry updates. TWAP access for externally owned accounts is a separate feature from that notification rollout.