Skip to content

fix(circle): scope mainnet Circle to Base only (hold back Arbitrum)#18

Merged
cipherwebllc merged 1 commit into
mainfrom
fix/circle-base-only-rollout
May 30, 2026
Merged

fix(circle): scope mainnet Circle to Base only (hold back Arbitrum)#18
cipherwebllc merged 1 commit into
mainfrom
fix/circle-base-only-rollout

Conversation

@cipherwebllc
Copy link
Copy Markdown
Owner

Why

NEXT_PUBLIC_ENABLE_CIRCLE_PAYMASTER is a global flag. resolveUsdcGaslessProvider returns 'circle' for any chain present in both CIRCLE_PAYMASTER_ADDRESSES and CIRCLE_GAS_SURCHARGE_BPS. Arbitrum mainnet (42161) was in the surcharge config, so flipping the flag for the Base rollout would have also activated Circle on Arbitrum mainnet — which has not passed the real-device gate (only Base did, 2026-05-30; Arbitrum only on testnet/Arb Sepolia).

What

  • Comment out [arbitrum.id]: 1000 in CIRCLE_GAS_SURCHARGE_BPS so the global flag activates Base mainnet only; Arbitrum mainnet stays on Pimlico erc20 fallback. Its allowlist address + Arb/Base testnet surcharge entries are unchanged.
  • Re-enable path documented: pass SMOKE_CHAIN=arbitrum gate → restore the commented line.
  • Tests updated (42161 → "not registered" group) + runbook §段階リリース made precise.

Test

  • typecheck clean; circlePaymaster + useGasQuoteCircle tests green (21).

This makes step B (NEXT_PUBLIC_ENABLE_CIRCLE_PAYMASTER=1 in prod) genuinely Base-only, matching the staged-rollout plan.

🤖 Generated with Claude Code

…ts gate)

NEXT_PUBLIC_ENABLE_CIRCLE_PAYMASTER is a global flag: enabling it activates Circle
on every chain present in both CIRCLE_PAYMASTER_ADDRESSES and CIRCLE_GAS_SURCHARGE_BPS.
Arbitrum mainnet (42161) was in the surcharge config but only Base mainnet passed the
real-device gate (2026-05-30). To keep the first production rollout Base-only (per the
staged-rollout runbook), comment out [arbitrum.id] from CIRCLE_GAS_SURCHARGE_BPS so
Arbitrum mainnet stays on Pimlico erc20 fallback even with the flag on. Its allowlist
address and the Arb/Base testnet surcharge entries are unchanged.

Re-enable by passing SMOKE_CHAIN=arbitrum gate then restoring the commented line.
Tests + runbook §段階リリース updated to match.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openpay Ready Ready Preview, Comment May 30, 2026 1:13pm

@cipherwebllc cipherwebllc merged commit 5f1e386 into main May 30, 2026
6 checks passed
@cipherwebllc cipherwebllc deleted the fix/circle-base-only-rollout branch May 30, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant