Skip to content

feat: add wbtc.eth, usdt.sol, usdt.arb to chainflip supported assets#12137

Merged
gomesalexandre merged 7 commits intodevelopfrom
feat/chainflip-new-assets
Mar 12, 2026
Merged

feat: add wbtc.eth, usdt.sol, usdt.arb to chainflip supported assets#12137
gomesalexandre merged 7 commits intodevelopfrom
feat/chainflip-new-assets

Conversation

@gomesalexandre
Copy link
Contributor

@gomesalexandre gomesalexandre commented Mar 11, 2026

Description

wbtc.eth, usdt.sol, usdt.arb are now live on Chainflip mainnet. Adding them to the supported asset lists so they show up as swap routes.

  • added wbtcAssetId, usdtOnArbitrumOneAssetId, usdtOnSolanaAssetId constants to @shapeshiftoss/caip
  • added all three to ChainflipSupportedAssetIdsByChainId in the Chainflip swapper

dynamic asset resolution in getChainFlipIdFromAssetId() already matches by contract address + network, so no changes needed there.

Issue (if applicable)

closes #11332

Risk

low - additive change, new swap pairs only. existing routes unaffected.

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Chainflip swaps only.

Testing

Engineering

  1. curl the broker to confirm assets are live:
curl -s https://chainflip-broker.io/assets | python3 -m json.tool | grep -A5 '"wbtc.eth\|usdt.sol\|usdt.arb"'
  1. verify quotes work for new pairs (e.g. ETH -> WBTC, SOL -> USDT on Solana, ARB -> USDT on Arbitrum)

Operations

  • try swapping ETH to WBTC via Chainflip
  • try swapping SOL to USDT (Solana) via Chainflip
  • try swapping ARB to USDT (Arbitrum) via Chainflip

Screenshots (if applicable)

N/A

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added support for USDT on Arbitrum One
    • Added support for USDT on Solana
    • Added support for wBTC on Ethereum

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gomesalexandre gomesalexandre requested a review from a team as a code owner March 11, 2026 16:33
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 11, 2026

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: 8ea46914-78e5-4dc8-aa88-b4569422aa73

📥 Commits

Reviewing files that changed from the base of the PR and between ead6a6f and 700808c.

📒 Files selected for processing (2)
  • packages/caip/src/constants.ts
  • packages/swapper/src/swappers/ChainflipSwapper/constants.ts

📝 Walkthrough

Walkthrough

This PR introduces support for three new assets in the Chainflip swapper: WBTC on Ethereum Mainnet, USDT on Arbitrum Mainnet, and USDT on Solana Mainnet. Two new AssetId constants are defined in the CAIP package, and the Chainflip swapper configuration is updated to include these assets in their respective chain support lists.

Changes

Cohort / File(s) Summary
CAIP Asset Constants
packages/caip/src/constants.ts
Added two new AssetId exports: usdtOnArbitrumOneAssetId and usdtOnSolanaAssetId with their respective blockchain identifiers.
Chainflip Swapper Configuration
packages/swapper/src/swappers/ChainflipSwapper/constants.ts
Updated imports to include three new asset IDs (wbtcAssetId, usdtOnArbitrumOneAssetId, usdtOnSolanaAssetId) and integrated them into ChainflipSupportedAssetIdsByChainId for EthereumMainnet, ArbitrumMainnet, and SolanaMainnet respectively.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 Three new tokens hop into view,
WBTC, USDT old and new,
Across the chains they now can play,
Chainflip brings them out to stay! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 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: adding three new assets (wbtc.eth, usdt.sol, usdt.arb) to Chainflip supported assets, matching the actual code changes.
Linked Issues check ✅ Passed The PR successfully addresses the primary objective from issue #11332 by adding WBTC to Chainflip supported assets. Additionally, it extends functionality by also adding USDT on Solana and Arbitrum, making WBTC routable via Chainflip.
Out of Scope Changes check ✅ Passed All changes are in-scope: adding asset constants and updating Chainflip supported asset arrays. The changes are purely additive and directly support the objective of enabling new swap routes without modifying existing functionality.
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 docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/chainflip-new-assets

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.

Copy link
Collaborator

@NeOMakinG NeOMakinG left a comment

Choose a reason for hiding this comment

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

✅ Code Review — LGTM

Changes: Add new Chainflip supported assets:

  • WBTC on Ethereum
  • USDT on Solana
  • USDT on Arbitrum

Verification:

  • Asset IDs are correct (verified contract addresses)
  • Added corresponding constants to @shapeshiftoss/caip
  • Extends ChainflipSupportedAssetIdsByChainId correctly
  • CI passes ✅

Clean asset addition.

@gomesalexandre
Copy link
Contributor Author

qabot verification - new Chainflip assets

Tested all 3 newly added assets on local dev (branch feat/chainflip-new-assets):

Curl API verification (Chainflip broker)

Pair Result
usdt.arb -> eth.eth ($40) Quote returned
usdt.sol -> btc.btc ($40) Quote returned
wbtc.eth -> eth.eth ($40) Quote returned
eth.eth -> wbtc.eth ($40) "no quote available" (Chainflip liquidity, not our code)

UI verification (trade widget, no wallet connected)

Sell Buy Chainflip shows? Position
40 USDT0 on Arbitrum One BTC Yes 2nd (after NEAR Intents)
40 USDT on Solana BTC Yes 2nd (after NEAR Intents)
0.00057 WBTC on Ethereum BTC Yes 2nd (after NEAR Intents)

All 3 new assets successfully return Chainflip quotes in both the API and the UI. Chainflip consistently returns rates with ~2m 21.5s estimated execution time.

Result: PASS - all new assets are correctly integrated and returning quotes.

🤖 Generated with Claude Code

@gomesalexandre gomesalexandre enabled auto-merge (squash) March 12, 2026 10:24
@gomesalexandre gomesalexandre merged commit f06c48e into develop Mar 12, 2026
4 checks passed
@gomesalexandre gomesalexandre deleted the feat/chainflip-new-assets branch March 12, 2026 11:40
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.

Add WBTC to supported Chainflip assets

2 participants