wearenotabank Docs DE
Docs · Technical limits
Docs

Limits

What a Safe of this product cannot do, what the router leaves out, and the bounds the SDK refuses. Index: README.md. The router is described in full in docs/cra/router.md.

The router serves no NFT callbacks

Every Safe of this product has the FallbackRouter as its fallback handler. The router does three jobs and nothing else: it passes the three ERC-4337 selectors to Safe's 4337 module, answers ComposableCoW's order signatures, and gives every other signature the Safe's own default check. Any other selector, supportsInterface included, reverts with Unsupported(selector).

So a router Safe serves no ERC-721, ERC-1155 or ERC-777 callbacks and no supportsInterface, and it cannot receive an NFT by safeTransferFrom (SETUP-REQ-019): the transfer reverts (SETUP-FAIL-007). A plain transfer of the native token or of an ERC-20 token arrives. The fork tests are test_SafeTransferFromOfAnNftToARouterSafeReverts and test_EverythingElseIsUnsupportedAndAStrangersCallsRevert, which checks supportsInterface and the ERC-721, ERC-1155 and ERC-777 callbacks on all six chains. An app that lets a user send an NFT to such a Safe, or a service that calls onERC1155Received on it, will see that transfer fail, and should not offer it.

The router also needs Safe v1.5.0. A Safe below it is refused by checkSafe (safe-version-below-floor); with the router on Safe v1.4.1 a plain owner-signed order is refused with Unsupported(0xf855438b) (SETUP-FAIL-006, test_ASafeV141WithTheRouterIsRefused). The SDK does not upgrade a Safe. Existing Safes that were not created by the setup helper of a release are refused whatever their version: create a v1 Safe and move the funds (setup.md).

A handler that replaces the router stops the Safe

The router is the Safe's fallback handler, and the owners' wallet can replace it. A wallet flow that sets Safe's 4337 module or CoW's extensible handler as the handler stops the conditional orders (CoW's watch-tower, the service that polls conditional orders and posts them, drops an order whose poll reverts), or stops the 4337 path, depending on the one set. The SDK reports it: status says handler-replaced for the chain, and buildArm is refused with the same code. The router put back makes the orders valid and the op run again (test_AReplacedHandlerStopsTheOrdersAndTheRouterPath, all six chains). Enabling a further module, or replacing the handler, is outside this product: an integrator whose wallet offers the owners other Safe apps or modules should warn them before such a change.

Permission modules, session modules and guards on a router Safe

If you write permission scopes, session keys or a module for a router Safe, read this first. A CALL that the Safe itself makes to the router, or to Safe's 4337 module, with the EntryPoint's address as the last 20 bytes of its call data, makes the Safe DELEGATECALL any code its maker chooses. Nothing is appended to the call data on that path, and Safe's 4337 module takes those last 20 bytes as its caller. A stranger calling the Safe cannot do this, because the Safe's fallback appends the real caller. A module, a guard or the owners' own signed transaction can. The router cannot tell the two apart and stays as it is. Safe's 4337 module has the same property with no router, and the router is a second address with it. What is lost is everything the Safe holds and its owner set (spec/residuals.md, "A call from the Safe to the router, or to Safe's 4337 module, runs any code as the Safe").

The rules, in plain sentences:

  • A permission or session module on a router Safe must deny both addresses as targets: the router of the release (record.contracts.router.address) and Safe's 4337 module (record.thirdParty.Safe4337Module.address). A scope of "calls only, no DELEGATECALL" is not enough, because the DELEGATECALL happens inside the call.
  • Do not use a third-party module that has no deny rule for both addresses. Check every release's router too: the SDK's refusesSafeTransactionTo(address) answers for the router of every release record and for Safe's 4337 module, and checkSafeTransactionTarget(address) refuses with safe-target-refused. Call one of them for every target a scope can name, and read the next rule: they judge one address.
  • refusesSafeTransactionTo and checkSafeTransactionTarget judge one address, and a batch is not one address. A Safe transaction that sends several calls is a DELEGATECALL to MultiSendCallOnly, so its to is MultiSendCallOnly, and the helper answers false for it even when an inner call goes to the router or to Safe's 4337 module. Inside that DELEGATECALL the router sees the Safe as its caller, which is the path above. So unpack every MultiSend batch (multiSend(bytes): each inner call's operation, target, value and data) and check each inner target with the helper; the SDK has no function that unpacks a batch, and its own paths do it before they batch (safeTransactionFor, describeStep), so what the SDK builds is closed and what you build or read elsewhere is yours to check.
  • Treat any DELEGATECALL other than to MultiSendCallOnly as full control already. Code that a Safe DELEGATECALLs runs as the Safe and can call the router, Safe's 4337 module or anything else from there, so a helper answer for that target says nothing. A scope that allows a DELEGATECALL to another contract has already given away the Safe, whatever its list of targets says.
  • A guard that refuses DELEGATECALL closes the path only when it is a module guard (Safe v1.5.0's setModuleGuard): it is shown the nested call and refuses its DELEGATECALL. A transaction guard that refuses DELEGATECALL does not: the inner call goes through execTransactionFromModule, and a transaction guard never sees it. A module guard that refuses nested module calls stops the 4337 path altogether, which only costs the path.
  • Never ask the owners to sign a plain call to either address. The SDK builds none, and describeStep, verifyStep and buildSafeTransactionExecution refuse a step that goes to either (safe-target-refused).
  • The check is yours to run on a transaction that you build outside the SDK, and on a module the owners already enabled: the SDK cannot see it.
// for every target a permission or session scope, or a Safe transaction of your own, can name: one address at a time, so pass each inner target of a MultiSend batch, never the batch's own `to`if (sdk.refusesSafeTransactionTo(target)) throw new Error('the router and the 4337 module are never targets');sdk.checkSafeTransactionTarget(target); // or: throws SdkError with code 'safe-target-refused'
// for every target a permission or session scope, or a Safe transaction of your own, can name: one address at a time, so pass each inner target of a MultiSend batch, never the batch's own `to`if (sdk.refusesSafeTransactionTo(target)) throw StateError('the router and the 4337 module are never targets');sdk.checkSafeTransactionTarget(target); // or: throws SdkError with code safeTargetRefused

The fork suite holds all of it on Base (test/fork/suite/ForkSuiteBaseRouter.t.sol, test_AScopedCallOnlyDelegateTakesTheSafeOverThroughACallToTheRouter and the tests after it). The permission modules that integrators pair with a router Safe have not been run against this; an external audit should.

Operations on a router Safe

The SDK builds no UserOperation, and names no bundler, paymaster, session key, signer or co-signer of ours (SDK-REQ-024). No file of either SDK, or of the data they share, contains the word bundler or the word paymaster (tools/test/cra-docs.test.ts holds that, docs/cra/bundlers-and-paymasters.md). The router lets the same Safe use a 4337 path, so its owners, or an integrator they use, may send an op through a bundler they choose. That choice is theirs.

An op on a router Safe needs router-kind call limits. A Safe whose handler is Safe's 4337 module (the module kind) needs smaller ones, and the router's extra hop makes the module kind's limits too low. A limit that is too low has a price: a too-low call limit makes the op fail inside a bundler's own transaction, with the nonce spent, the prefund charged and the action not done (DEC-010 point 7, from the router-kind fork suite of hooked-userop). A too-low verification limit is refused with AA26 over verificationGasLimit and nothing is spent. The fork suite shows it on the router Safe: the same op is refused under the module kind's limits and runs under the router kind's (test_TheModuleKindsLimitsFailOnTheRouterSafe, test_TheThreeSelectorsRunThroughTheEntryPointWithTheRouterKindsLimits). The limits that suite uses for each kind, as docs/fork-tests.md ("The router on the six chains") records them, are these. The module kind's verification and call limits are the ones that fail on the router Safe.

Limit Router kind Module kind
verification gas139,000111,000
call gas88,00072,000
the settlement's hook 264,000 203,000

Source: docs/fork-tests.md, section "The router on the six chains".

They are the limits of the fork suite of hooked-userop, used here as test inputs, since this project builds no op. An integrator that builds ops takes at least the router kind's and measures its own.

The router costs more per op than the module kind (costs.md, "What the router costs"). The burn hook and the owners' op can meet in one settlement; see running.md, "The burn takes the whole USDC balance". Bundlers and paymasters an integrator runs are its own question (duties.md).

The chains and the targets

Six chains are served, and only a chain with a current release record is served at all (setup.md, "The chains"). A target is one of the five chains Circle forwards to; Plasma is a source only (target-chain-not-allowed). A chain whose pinned contracts have other code than the record's is refused (code-hash-mismatch).

Whether CoW's hosted watch-tower posts the conditional orders on a chain is observed, not documented: CoW publishes no list of its chains. On 2026-12-02 a ComposableCoW order of another Safe had been created and settled within the last weeks on Ethereum, Base, Arbitrum One, Avalanche and Polygon PoS. On Plasma the newest such case is from 2026-11-09, from one owner, and none has been seen since. A chain that is not served leaves a Safe set up with nothing sold; an owner or an integrator may run a watch-tower of their own, and the project never does.

The Safes and the owners

  • Only Safes created by the version 1 setup helper take part (setup.md, "Existing Safes are refused").
  • The owners are plain (EOA) owners. A contract (ERC-1271) owner, a passkey owner and a nested-Safe owner are refused (owner-contract-refused, owner-passkey-refused, owner-nested-safe-refused), because their gas is not measured and a nested Safe signs one chain at a time.
  • A chain runs the modules of one version at a time (two-versions, two-versions-modules).
  • A later version with another helper gives new Safes a new address (migration-and-exit.md).

The bounds the SDK refuses

The store's bounds, which the SDK mirrors as named refusals before anyone signs. They are constants in packages/sdk-ts/src/configuration.ts and in packages/sdk-dart/lib/src/configuration.dart, and the SDK tests spell them out again.

Bound Value Constant Refusal
rows in a message 6 MAX_ROWS too-many-rows
excluded tokens in a row 64 MAX_EXCLUDED_TOKENS too-many-excluded-tokens
a row's slippage 10 to 500 bps MIN_SLIPPAGE_BPS, MAX_SLIPPAGE_BPS slippage-out-of-range
minBurn against maxFee at least 20 times MIN_BURN_PER_MAX_FEE min-burn-below-fee-floor
the integrator's rate at most 100 bps MAX_INTEGRATOR_VOLUME_BPS integrator-volume-too-high
the integrator's rate that CoW's cap may cut none: the cap is the store's bound of 100 bps INTEGRATOR_CAP_WARNING_BPS the warning integrator-volume-may-be-cut, which cannot fire

Also refused: two rows for one chain (duplicate-chain-id), an integrator entry with only one of its two fields (integrator-half-set), a row that is on for a chain that is not the target and has a maxFee of zero (max-fee-zero), and a target token the target chain's oracle does not price (target-token-not-priced).

What is not built

  • A per-chain join of existing Safes. The SDK refuses them by name.
  • Signatures of contract owners on the configuration (SETUP-REQ-027).
  • A list of the wallets that sign typed data whose domain has no chain id.
  • A published package of either SDK, a release record and a deployment (README.md, "Status").