add arc-mainnet (5042) support#217
Merged
Merged
Conversation
Arc (chainId 5042) is Circle's USDC-native L1: native gas token is USDC, no wrapped native, so pairs pair against native USDC and USDC is the reference token. Since the reference token IS the dollar, getEthPriceInUSD() returns 1 (no reference/stable pair exists) — opted in by including REFERENCE_TOKEN in STABLE_TOKEN_PAIRS; the guard only fires on that, so other chains are unaffected. - pricing.ts: return ONE_BD when STABLE_TOKEN_PAIRS.includes(REFERENCE_TOKEN) - config/arc-mainnet: V2 factory 0x89e5db8b... @ startBlock 1948011; REFERENCE_TOKEN = USDC, STABLECOINS = [USDC], WHITELIST = [USDC, EURC, USYC, cirBTC] - register arc-mainnet in the NETWORK enum Addresses per Uniswap/contracts deployments/5042.md; startBlock from explorer.arc.io. cirBTC (0x171A4217...) is BTC-pegged so it's whitelisted but excluded from STABLECOINS.
ciyengar3
approved these changes
Jun 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Arc mainnet (chainId 5042, Circle's USDC-native L1) to the v2 + v2-tokens subgraphs.
Arc's native gas token is USDC and there's no wrapped native, so pairs pair against native USDC (
0x3600…0000, 6 dec) and USDC is the reference token. Because the reference token is the dollar,getEthPriceInUSD()returns 1 — opted in viaSTABLE_TOKEN_PAIRS = [REFERENCE_TOKEN]; the guard only fires onSTABLE_TOKEN_PAIRS.includes(REFERENCE_TOKEN), so every other chain is unaffected. (Mirrors v3-subgraph#300.)Changes
src/common/pricing.ts—return ONE_BDwhen the reference token is inSTABLE_TOKEN_PAIRS.config/arc-mainnet/— V2 factory0x89e5db8b…@ startBlock 1948011;REFERENCE_TOKEN = USDC,STABLECOINS = [USDC],WHITELIST = [USDC, EURC, USYC, cirBTC], thresholds mirrortempo.prepareNetwork.ts— registerarc-mainnet.EURC(EUR-pegged),USYC(yield-bearing) andcirBTC(0x171A4217…, BTC-pegged) are whitelisted but kept out ofSTABLECOINS. Builds verified for v2 + v2-tokens.Addresses per 5042.md; startBlock from explorer.arc.io.