feat: wire debridge to 9 additional evm chains#12143
Conversation
Add Mantle, Cronos, Berachain, Linea, Bob, Sonic, Story, Flow EVM, and MegaETH to the deBridge swapper chain mapping. All chains are already supported in the codebase behind feature flags - this just enables cross-chain bridging routes through deBridge for them. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughExtended the deBridge swapper's chain ID mapping to support nine additional EVM chains: Mantle, Cronos, Berachain, Linea, Bob, Sonic, Story, Flow EVM, and MegaETH. Added corresponding chain ID imports and mapping entries for each chain. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
QA Verification - deBridge quotes on localhostRan local dev server on this branch and verified deBridge returns quotes for the new chains. Test: ETH -> MNT on Mantle via deBridge
Also verified via deBridge API that all 9 chains return valid quotes:
All looking gucci ser. |
NeOMakinG
left a comment
There was a problem hiding this comment.
✅ Code Review — LGTM
Changes: Add 9 EVM chains to deBridge swapper:
- Mantle, Cronos, Berachain, Linea, Bob, Sonic, Story, Flow EVM, MegaETH
Verification:
- Chain IDs match deBridge's supported chains (verified via API)
- All chains already supported in codebase behind feature flags
- Simple mapping addition, no logic changes
- CI passes ✅
Good expansion of cross-chain bridging support.
Enable VITE_FEATURE_MEGAETH feature flag to activate MegaETH (chainId 4326) as a supported chain in the app. MegaETH is already wired in: - RelaySwapper (PR shapeshift#11904 area) - AcrossSwapper (PR shapeshift#12144) - DebridgeSwapper (PR shapeshift#12143) Routes verified: - Relay: active, MegaETH chainId 4326 mapped - Across: 81 routes from 20 source chains (ETH, WETH, USDT) - deBridge: chain registered as 100000031 This enables the chain in the UI. Individual swapper availability depends on their respective feature flags (ACROSS_SWAP, DEBRIDGE_SWAP).
Enable VITE_FEATURE_ACROSS_SWAP and VITE_FEATURE_DEBRIDGE_SWAP feature flags. Both swappers are fully implemented and wired to multiple chains: - Across: supports 20+ EVM chains including MegaETH, Scroll, Base, Arbitrum - deBridge: supports 12+ EVM chains including MegaETH, Berachain, Sonic These swappers have been in the codebase since PR shapeshift#11941 (deBridge) and earlier (Across), with chain wiring expanded in PRs shapeshift#12143 and shapeshift#12144. Enabling them adds competitive route options alongside Relay, THORChain, and Chainflip for best-price routing.
Description
Does what it says on the box. deBridge supports these chains that we already have in the codebase but weren't wired up in the swapper mapping. Pure config work - just adding entries to
chainIdToDebridgeChainId.Chains added: Mantle, Cronos, Berachain, Linea, Bob, Sonic, Story, Flow EVM, MegaETH
All chains verified returning valid quotes from deBridge API:
Skipped Solana/Tron for now (non-EVM, needs separate investigation for deposit-address flow).
closes #12139
Risk
Low - config changes behind existing feature flags, no new on-chain interactions.
Testing
Engineering
Verify type-check and lint pass. Verify that
DEBRIDGE_SUPPORTED_CHAIN_IDSnow includes the 9 new chains by checking the constant derives from the mapping keys.Operations
All 9 chains are gated behind their respective feature flags (VITE_FEATURE_MANTLE, VITE_FEATURE_CRONOS, etc.).
Summary by CodeRabbit