Skip to content

feat: enable Across and deBridge swappers - #12208

Merged
kaladinlight merged 2 commits into
shapeshift:developfrom
stuuagentclaw:feat/enable-across-debridge-swappers
Apr 1, 2026
Merged

feat: enable Across and deBridge swappers#12208
kaladinlight merged 2 commits into
shapeshift:developfrom
stuuagentclaw:feat/enable-across-debridge-swappers

Conversation

@stuuagentclaw

@stuuagentclaw stuuagentclaw commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Description

Enable Across Protocol and deBridge DLN as active swap routes by setting their feature flags to true.

Both swappers are fully implemented and have been in the codebase for weeks:

Impact

Enabling these swappers adds 2 new route providers to ShapeShift's quote comparison engine, competing alongside Relay, THORChain, Chainflip, and other active swappers for best execution.

Key chains that gain additional routes:

  • MegaETH: Relay (active) + Across (81 routes) + deBridge
  • Berachain: Relay (active) + deBridge
  • Scroll, Linea, Sonic, Mantle, Cronos: gain Across and/or deBridge routes
  • Existing chains (ETH, ARB, OP, Base, etc.): more route competition = better prices

Across supported chains (verified via API)

Ethereum, Optimism, BNB, Polygon, Arbitrum, zkSync, Linea, Base, Scroll, Blast, Mode, Ink, Unichain, Worldchain, Monad, MegaETH, HyperEVM, Plasma, Soneium + more

deBridge supported chains (verified via API)

Ethereum, Optimism, BNB, Polygon, Arbitrum, Avalanche, Base, Linea, Sonic, Story, Flow EVM, MegaETH, Berachain, Mantle, Cronos, BOB, Gnosis, SEI + more

Risk

Medium - Enables two new swap routes globally. Both have been in the codebase behind flags and tested via their respective integration PRs. No new contracts or on-chain interaction changes.

Affected: All swap quotes will now include Across and deBridge routes when available for the selected pair. Users may see more route options.

Testing

Engineering

  • Verify type-check and lint pass
  • Verify Across quotes return for ETH → ARB swap
  • Verify deBridge quotes return for ETH → BSC swap
  • Verify both appear in quote comparison alongside Relay/THORChain

Operations

  • Verify Across route appears in swap UI for supported chains
  • Verify deBridge route appears in swap UI for supported chains
  • Verify swap execution works end-to-end for at least one Across route
  • Verify swap execution works end-to-end for at least one deBridge route
  • Verify quote comparison shows multiple routes when available

Summary by CodeRabbit

  • New Features

    • Enabled Across Swap and deBridge Swap features for users.
  • Chores

    • Removed the explicit development-only feature flags for Across Swap and 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.
@stuuagentclaw
stuuagentclaw requested a review from a team as a code owner March 25, 2026 10:19
@coderabbitai

coderabbitai Bot commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a759710e-a371-4c78-a86e-28477faee635

📥 Commits

Reviewing files that changed from the base of the PR and between ebca0a6 and 7ee3a7f.

📒 Files selected for processing (2)
  • .env
  • .env.development
💤 Files with no reviewable changes (1)
  • .env.development

📝 Walkthrough

Walkthrough

Two Vite feature flags were toggled: in .env VITE_FEATURE_ACROSS_SWAP and VITE_FEATURE_DEBRIDGE_SWAP were changed from false to true; in .env.development those two variables were removed.

Changes

Cohort / File(s) Summary
Production env
./.env
Enabled two feature flags by changing VITE_FEATURE_ACROSS_SWAP and VITE_FEATURE_DEBRIDGE_SWAP from falsetrue.
Development env
./.env.development
Removed VITE_FEATURE_ACROSS_SWAP=true and VITE_FEATURE_DEBRIDGE_SWAP=true entries from the development env file.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 I hopped through lines both short and few,
I flipped two flags from false to true.
In dev I tidied what’s not to show,
In prod they gleam — off we go! 🚀

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main change: enabling two swap route providers (Across and deBridge) by setting their feature flags to true in configuration files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.env:
- Line 367: Remove the redundant mode-specific environment variable entries for
VITE_FEATURE_ACROSS_SWAP and VITE_FEATURE_DEBRIDGE_SWAP: since these flags are
already defined globally (VITE_FEATURE_ACROSS_SWAP and
VITE_FEATURE_DEBRIDGE_SWAP present in the main .env), open the environment files
for specific modes and delete any lines that set VITE_FEATURE_ACROSS_SWAP or
VITE_FEATURE_DEBRIDGE_SWAP so the global values are authoritative and no
mode-specific overrides remain.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1fa77b38-5809-4043-949d-ba32dfb247b1

📥 Commits

Reviewing files that changed from the base of the PR and between 7b7725d and ebca0a6.

📒 Files selected for processing (1)
  • .env

Comment thread .env Outdated

@kaladinlight kaladinlight left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

@kaladinlight
kaladinlight merged commit 44632ae into shapeshift:develop Apr 1, 2026
4 checks passed
kaladinlight added a commit that referenced this pull request Apr 4, 2026
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 #11941 (deBridge) and
earlier (Across), with chain wiring expanded in PRs #12143 and #12144.

Enabling them adds competitive route options alongside Relay, THORChain,
and Chainflip for best-price routing.

Co-authored-by: kaladinlight <35275952+kaladinlight@users.noreply.github.com>
kaladinlight added a commit that referenced this pull request Apr 7, 2026
* feat: regenerate asset data 04/01/2026 (#12234)

Co-authored-by: asset-generation-bot <action@github.com>

* feat: enable Across and deBridge swappers (#12208)

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 #11941 (deBridge) and
earlier (Across), with chain wiring expanded in PRs #12143 and #12144.

Enabling them adds competitive route options alongside Relay, THORChain,
and Chainflip for best-price routing.

Co-authored-by: kaladinlight <35275952+kaladinlight@users.noreply.github.com>

* feat: enable MegaETH chain support (#12207)

* feat: regenerate asset data 04/02/2026 (#12237)

Co-authored-by: asset-generation-bot <action@github.com>

* fix: fix Relay non-EVM transaction notification and Tron calldata handling (#12015)

* feat: update RFOX current epoch IPFS hash (#12251)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat: regenerate asset data 04/03/2026 (#12246)

* fix: display requiresBalance protocol fees in network fee UI

Protocol fees with requiresBalance (e.g. deBridge fixFee, Jupiter account
creation) were only validated for sufficient balance but never displayed.
This misrepresented the true cost of routes like deBridge which charges
~0.005 BNB on BSC.

- Include requiresBalance protocol fees in network fee selectors (crypto + fiat)
- Fix TradeConfirmFooter (Sign & Swap screen) to include protocol fees
- Account for requiresBalance fees in quote sorting even when network fee is unknown
- Fix deBridge to use fixFee directly instead of prepended operating expenses

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: asset-generation-bot <action@github.com>
Co-authored-by: stuuagentclaw <stuagentclaw@gmail.com>
Co-authored-by: Apotheosis <0xapotheosis@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

2 participants