The configuration, the disclosure and the signatures
What the owners sign, what they must be shown before they sign it, and how the signatures are gathered. Index:
README.md. Before this page: setup.md. After it:
documents.md.
Warning (
DEC-019). The owners' signature can name a target token that someone else controls; the store fixes the oracle of each chain (DEC-030). The oracle decides which tokens the Safe sells on its chain and the lowest price it accepts; the target token is what the Safe sells everything for on the target chain, the USDC that arrives from the other chains included. The SDK flags such a token and refuses another oracle. The app must show those flags before the owners sign. See The warnings the owners must see.
The one message
The owners sign one message, built once, as identical bytes for every owner. It names the Safe, the target chain and token, the integrator's partner-fee entry, one row for each chain (the oracle, the switch, the slippage, the dust limit, the smallest burn, Circle's fee ceiling and the excluded tokens) and a
seq. Its EIP-712 domain has a name, a version and the configuration store as verifyingContract; the domain has no chain id and no deadline, but the message carries a
validUntil, the end of its one window, and the owners sign it with the rest. So the same signature is valid on all six chains until its
validUntil and not after it: each chain applies it when a seq above the one it holds is sent to it, and anyone may send it, but a chain refuses it once its
validUntil has passed (ConfigurationExpired) and while its validUntil
is more than 180 days after that chain's block time (WindowTooLong; both in accept
of src/ConfigurationStore.sol). A signed message that no chain has applied has no other deadline for being sent. Once a chain has applied it, the window ends at the signed
validUntil, at most 180 days after that chain applied it, whenever it was signed or sent. The domain comes from the release record, not from a constant of the SDK.
const build = await sdk.buildConfiguration({ safe, targetChainId: 8453, // the owners' choice; the SDK has no default and suggests none targetToken, // the owners' or the wallet's choice, an address on the target chain; a build without one is refused (`invalid-input`) integrator: { recipient: feeRecipient, volumeBps }, // optional rows, // optional: a row per chain with a reviewed oracle when left out, [] for each chain off keepOldTargetToken, // at a target change: add the old target token to the old target chain's excluded list});
final build = await sdk.buildConfiguration(BuildConfigurationInput( safe: safe, targetChainId: 8453, targetToken: targetToken, // no default: a value that is not an address is refused (`invalid-input`) integrator: IntegratorFee(recipient: feeRecipient, volumeBps: volumeBps), rows: rows, keepOldTargetToken: keepOldTargetToken,));
What the build does:
-
seqis one above the highestseqthe Safe has stored across the chains read. The chains are read through the integrator's RPC. The SDK never buildsseq4294967295, the largest there is (last-seq-refused), and refuses a storedseqthat leads the highest of the other chains by more than1000(seq-jump-refused): chains differ only by the messages not yet applied on them, so a larger lead is one chain's answer being wrong. The refusal names the chain to check. -
The target token is the caller's: the SDK ships no default target token and suggests none (
DEC-029). A build without one is refused (invalid-input). The tokens the SDK has reviewed for each chain are data in the refusal list (REFUSAL_LIST, thereviewedSetof each chain) to choose from; the list ranks no entry and preselects none. The oracle of each row is the release record's reviewed oracle unless the caller names another (proposedOracleChainslists the chains that use the reviewed one). On a chain whose record names no reviewed oracle, the SDK proposes none, and a row that is on without one is refused (oracle-missing). -
When the caller leaves them out, a row's slippage is proposed as 20 basis points of room for the solver plus the integrator's rate plus a margin from the record, and its dust limit from the
defaultsof the row's own release record; itsminBurnandmaxFeeare thedefaults.targetof the target chain's record, because Circle's fee depends on the destination (docs/release-record.md, "defaults"). They are fixed by the release and never read at run time. No release record exists yet, so the guide states no default (README.md, "Status"). - The target chain is the owners' choice. The SDK never picks one and never suggests one for a user.
-
defaultOracle(chainId)returns the reviewed oracle of a chain from the release record, or nothing where the record names none or the refusal list holds no reviewed set for the chain; the SDK then proposes none. -
Every bound of the store is a named refusal before anyone signs (
target-chain-not-allowed,integrator-half-set,integrator-volume-too-high,too-many-rows,duplicate-chain-id,too-many-excluded-tokens,slippage-out-of-range,min-burn-below-fee-floor,max-fee-zero), so a message that passes is one the store should not refuse for its bounds. The store decides on chain. The numbers are onlimits.md. -
target-token-not-priced: the target chain's oracle does not price the target token, so no order would buy it.keep-usdc-not-possible: a burn takes the whole USDC balance whatever the exclusion list says. -
The integrator's entry is a recipient and a rate in basis points, both or neither (
integrator-half-set). The service takes no fee and the SDK writes no partner fee of its own anywhere; the only entry a document can carry is this one, and with none set there is nopartnerFeekey.
build.warnings carries the named warnings of a message that passes: token-not-reviewed
(below). The former warning integrator-volume-may-be-cut cannot fire any more: the integrator's entry is the only one in a document and the store's bound on its rate (100 bps) is CoW's cap.
Three behaviours of what the owners sign are stated on the trust page, each with its effect on their funds: any address can be excluded and gets its allowance set to zero, a newly accepted row moves the burn before the orders follow
sync, and verify does not check the dust limit (../trust.md).
The refusal list
screenToken(chainId, token) and sdk.refusalList show the data behind the refusals that name a token (docs/refusal-list.md). The SDK refuses a target token, and a token of an oracle a row sweeps, that the list names as an asset of Annex LIII of Regulation (EU) No 833/2014 or of Annex XXXIV of Regulation (EC) No 765/2006 (annex-asset-refused), as a financial instrument (financial-instrument-refused) or as a token whose value grows with holding time (holding-growth-token-refused). A token the list does not name is neither cleared nor refused: it is
reviewed when the reviewed set of its chain holds it and not-reviewed otherwise, with a notice to show. That is not a finding that the token is lawful. A token of an oracle that a row excludes is not screened, because the row does not sweep it. The list gates every message the SDK touches, not only the ones it builds:
describeConfiguration, combineConfigurationSignatures, buildApply,
buildFirstApply and the fresh message of buildMigration refuse a message whose target token or oracle tokens the list names, with the same codes. The tokens of an oracle that is not the release's reviewed one are read from the chain of its row, so the configuration needs an endpoint for that chain (invalid-config
otherwise); a message with the reviewed oracles reads nothing for this.
const screen = sdk.screenToken(8453, token); // { verdict: 'reviewed' | 'not-reviewed', notice }
final screen = sdk.screenToken(8453, token);
What the owners read
describeConfiguration returns the text the owners read before they sign. It is written from the configuration being signed and never from text the caller passes; the same input and chain state give the same text. The build is checked as a whole first: a build whose typed data or digest is not its configuration's is refused (invalid-input). The chains are read for the Safe's stored target and, at a target change, its balance of the old target token. The message must be the next one after the highest
seq stored, or the call is refused (invalid-input): a newer message was applied since the build, so build it again. The same two refusals as in the build apply to the
seq the chains answer (last-seq-refused, seq-jump-refused), and a message with the largest
seq is not described.
const disclosure = await sdk.describeConfiguration({ build });show(disclosure.text); // or disclosure.lines, in order
final disclosure = await sdk.describeConfiguration(DescribeInput(build: build));show(disclosure.text);
The text is under five headings, with the owners' agreement first. It says (SDK-REQ-006,
FEE-REQ-008):
- that the message applies on all six chains, and that a chain it does not list is off;
- that on each chain but the target the Safe sells supported tokens for USDC and sends the USDC through Circle to the same address on the target chain, irreversibly and without refund;
- at onboarding, that the address can send USDC through Circle on each chain except the target;
- at a target change, which chains start sending (the old target chain included) and what the Safe holds there of the old target token, with the offer to keep it on that chain;
-
that the signature ends at its
validUntil, at most 180 days after a chain accepts it (MAX_WINDOWinsrc/ConfigurationStore.sol); that until then it stays valid on each chain until a newer message is applied there; and that after it the sweep posts nothing andburnandverifyrevert (src/SweepModule.sol,src/BridgeModule.sol), on each chain where it was applied, until the owners sign a new message; - the fees: that the contracts charge no fee, CoW Protocol's partner fee for the integrator's entry when there is one, how it is counted, that CoW may charge its own protocol fee, network costs, and Circle's forwarding fee up to the row's ceiling;
- each chain's settings and its oracle, and the tokens of the reviewed oracle;
-
that every burn takes the Safe's whole USDC balance, and that an op of the owners in the same settlement may find its USDC gone (
running.md); - that anyone can apply the message and start a transfer, that the receiver is always the Safe itself, and who does what and what can go wrong.
The warnings the owners must see
A message the owners sign can name any target token and an integrator's fee, and the store bounds neither beyond 100 basis points for the fee. The oracle of a row that is on is fixed per chain: the store refuses a message that names another oracle for a row that is on (OracleNotReviewed), and a chain with no reviewed oracle cannot be on, so a message built outside the SDK cannot choose the price source (DEC-030, 2026-12-01, which amends
DEC-019 points 1 and 3). A message built outside the SDK can still name a target token that only its sender controls: the reviewed oracle prices none, so nothing is sold into it on the target chain and the sweep there stops, and it can name an integrator at up to 100 basis points of the volume of each sale, for up to 180 days after each acceptance. The receiver stays the Safe. The reviewed oracle is the SDK's default, and the SDK refuses any other by name (oracle-not-reviewed) before a message is signed or applied. A signature of a
validUntil more than 180 days ahead is no message an honest app builds: the SDK warns of it (valid-until-too-far, and the line
warn.window in the description).
describeConfiguration flags it by name, for a message the SDK did not build as for one it did, and flags an integrator's fee that is not the one the app is set up with:
| Line | When it appears |
|---|---|
warn.oracle-replaced |
The fresh message of a migration names the new release's reviewed oracle in place of the one the Safe had stored on a chain (the build carries the warning oracle-replaced for each such chain).
|
warn.window |
The window of the message ends more than 180 days after the now the description is given (describeConfiguration takes the machine's clock when none is given).
|
warn.target-token |
The target token is not one of the reviewed tokens of the target chain (a token the owners name is judged the same way, Circle's native USDC included). |
warn.integrator |
The message sets an integrator's fee that is not the one the SDK is configured with (integrator in the configuration). The integrator's own fee is shown with the ordinary fee line only; an entry that came from elsewhere, or any entry when the configuration names none, is flagged.
|
The integrator shows these warnings. An app does all of the following:
-
Show the whole
disclosure.text, or all ofdisclosure.lines, before every configuration signature, in the order given. Do not shorten it, summarise it, collapse the warning behind a link or a toggle, or show the signing prompt first. -
Put the lines whose
idstarts withwarn.where the owners cannot sign without having been shown them, and keep their words. The SDK writes the words; the app does not rephrase them. -
Show
build.warningsand thenoticeof everynot-reviewedscreen as well. -
An app that lets a user type an oracle address or a target token passes it through
buildConfigurationanddescribeConfigurationlike any other input, so the warnings above appear for a target token, and an oracle that is not the chain's reviewed one is refused (oracle-not-reviewed). An app default that names its own oracle, its own target token or a fee recipient is the integrator's choice and the integrator's duty; the risk assessment lists it among the ways to misuse the product (docs/cra/risk-assessment.md, "What an integrator's own file takes over").
The text also states what the SDK cannot prevent. These are disclosed residuals, not checks:
-
scope.later-messageandpower.anyone: the receiver is always the Safe, and a message naming another target token can still change what the Safe receives, and the sender can still name an integrator's fee of up to 100 basis points. -
scope.seq-lock: a chain accepts aseqat most 1,000 above the one it holds. A jump of 1,000 on one chain can leave another chain more than 1,000 behind, and the owners' next message is then refused there until one within 1,000 of its number has been applied. The way out on a chain is also a Safe transaction that disables the modules (migration-and-exit.md).
The signatures
The owners' wallets sign. The SDK holds no key. walletTypedData turns the build's typed data into the form
eth_signTypedData_v4 takes: every uint64 and uint96 is a decimal string, and the domain lists three fields. A wallet that refuses typed data whose domain has no chain id cannot sign this message, and no list of the wallets that take it exists. A signature that is made over a typed data with a chain id added does not verify, and nothing is moved by it.
const typedData = walletTypedData(build.typedData);// each owner: signature = await wallet.signTypedData(typedData)const combined = await sdk.combineConfigurationSignatures({ build, signatures, owners, threshold });
final typedData = walletTypedData(build.typedData);final combined = await sdk.combineConfigurationSignatures(CombineInput( build: build, signatures: signatures, owners: owners, threshold: threshold,));
combineConfigurationSignatures recovers every signature over the digest it rebuilds itself, orders them by the owners' addresses as the Safe's
checkSignatures takes them, and returns the combined bytes with the store they are for. It refuses a signature that is not an owner's, a wrong count, and an
eth_sign or approved-hash form (signature-mismatch). The owners and the threshold are required, and are read from the Safe on every configured chain where it is deployed, so an owner rotated on one chain only is found here (owners-mismatch). A signature of a contract owner is not accepted in version 1.
Keep the signed message, with its signatures and verifyingContract. It is what buildFirstApply
needs for a Safe that is not deployed yet (setup.md), and what
buildApply needs once it is, now and for each chain that lags later (running.md). A message that was signed and never applied on a chain stays valid there until a higher
seq is applied, and the disclosure says so.