Add BNB Chain (BSC) USDC bridge deposit support#2118
Merged
Conversation
Add Binance-Peg USD Coin (USDC, 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d)
on BNB Chain as a new bridge deposit source in the Add Funds ("send from
your crypto wallet" + "share your deposit address") and Deposit-to-Savings
(USDC vault) flows, alongside Polygon/Arbitrum.
- constants/bridge.ts: BSC entry (USDC, 18 decimals, isPermit false) + gold
circular BNB icon; add optional decimals to BridgeToken type
- lib/thirdweb.ts: register bsc chain so switchChain works in the
connected-wallet deposit flow
- hooks/useDepositFromEOA.ts: derive source-token decimals from the bridge
config instead of hardcoding 6 (BSC USDC is 18 decimals)
- constants/alchemy.ts: enable BSC token-balance fetching via Alchemy
- components/Coin/BalanceBreakdown.tsx: map the BSC chain icon + name in the
coin detail network breakdown
- assets/images/bsc.png + lib/assets.ts: circular gold BNB Chain icon
https://claude.ai/code/session_013JRn2tvDbZssJGAx4b6gJX
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
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.
Promotes the BNB Chain (BSC) USDC bridge-deposit support from
qatomasterby cherry-picking the merged feature commit.Commit (cherry-picked from qa):
585f84dAdd BNB Chain (BSC) as a USDC bridge deposit sourceWhat it does
Adds BNB Chain (BSC) + Binance-Peg USDC (
0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d) as a bridge deposit source in Add Funds (send-from-wallet + share-deposit-address) and Deposit-to-Savings (USDC vault) — like Polygon/Arbitrum.constants/bridge.ts: BSC entry (USDC, 18 decimals,isPermit: false) + circular gold BNB icon;decimalsadded toBridgeTokentypelib/thirdweb.ts: registerbscsoswitchChainworks in the connected-wallet flowhooks/useDepositFromEOA.ts: derive source-token decimals from config instead of hardcoding 6 (BSC USDC is 18)constants/alchemy.ts: enable BSC token-balance fetching via Alchemycomponents/Coin/BalanceBreakdown.tsx: BSC icon + name in the coin detail network breakdownassets/images/bsc.png+lib/assets.ts: circular gold BNB Chain iconCounterpart backend PR:
Solid-Money/solid-backendBSC bridge config + AA (also → master).https://claude.ai/code/session_013JRn2tvDbZssJGAx4b6gJX
Generated by Claude Code