What a settlement contract does for beginners: fund flow
What does a settlement contract do in an intent swap? It verifies the signed order, pulls sell tokens through the relayer and pays at least the signed minimum.
The ChainBrief Editors
In an intent-based swap, CoW Protocol’s GPv2Settlement verifies the signed order, moves the sell tokens through GPv2VaultRelayer, and pays the receiver at least the signed minimum in the same transaction. On-chain checks enforce the order’s terms, so a solver cannot settle it at a worse price.
This matters because the solver proposes a trade, but the settlement contract enforces what the trader signed.
What happens to the funds?
A signed order specifies the trade terms, including the sell token, buy token, amounts, and expiry. GPv2Settlement checks the signature and expiry, then checks that the proposed trade meets the order’s limit before moving tokens.
Token approval goes to GPv2VaultRelayer, not to an individual solver. The relayer can transfer approved tokens only when called by GPv2Settlement, so a solver cannot use that approval to pull funds on its own. The settlement contract’s checks govern whether the transfer can happen.
That is the on-chain flow behind a trade on cowswap: the interface presents the order, while solvers submit proposed solutions for settlement. Use the coincidence of wants concept at the matching step to understand how cowswap orders can be paired when traders want what the other side is offering.
Take an order to sell 1 ETH for at least a signed amount of USDC. Once GPv2Settlement validates the order and the solver’s solution, it pulls the ETH through GPv2VaultRelayer, runs the settlement’s swaps, and sends the required USDC to the order’s receiver. The payout must meet or exceed the signed minimum.
The transaction is atomic: token transfers, swaps, and payouts either complete together or revert together. If the signature is invalid, the order has expired, or the solution fails the limit, the transaction does not complete with a partial trade.
What the contract enforces
GPv2Settlement is the enforcement point; the solver is the party proposing how to settle orders. The solver’s solution may combine trades in a batch, but each order still has to pass its own signature, expiry, and price-limit checks. The contract applies those checks on-chain when it executes the solution.
This distinction helps explain the approval. The trader authorizes GPv2VaultRelayer to transfer tokens for settlement, but the relayer accepts calls only from GPv2Settlement. The solver does not receive a reusable allowance. Its proposal can move tokens only through a settlement call that satisfies the signed order terms.
The contract is also different from the exchange interface. cowswap is where a trader submits an intent; GPv2Settlement is the contract that verifies and executes the resulting settlement. The interface and solver coordinate the trade, while the contract determines whether the proposed transfers comply with the order.
When reviewing an intent, compare the sell amount and receiver with the signed buy minimum and expiry. That quick check makes the settlement outcome easier to follow and shows which terms the contract must enforce.