fix: block unsupported EURC to USDC swaps#4
Conversation
Alternative: support both directions without blocking eitherThis PR correctly guards the route that Circle Kit can't handle. For teams who need both EURC→USDC and USDC→EURC working on Arc Testnet today, we found a complete workaround using direct ERC-20 peer-to-peer transfers with a relayer wallet — no Circle Kit swap router involved. Quick summary of the approach:
Both USDC→EURC and EURC→USDC work in this model because the relayer holds both tokens and the swap is a peer-to-peer bookkeeping operation — there's no on-chain AMM or Circle Kit router in the path. Important Arc Testnet note for the permit step: The EIP-2612 domain for both tokens uses domain: {
name: "EURC", // or "USDC"
version: "2", // required — both tokens use version 2 on Arc Testnet
chainId: 5042002n,
verifyingContract: EURC_ADDRESS,
}Also critical: inside a Multicall3From subcall, Full working implementation (both directions, all token pairs including cirBTC): osr21/arc-swap — |
Summary
Fixes #1.
Test plan