Repository navigation
feat(bridge): USDG on Robinhood Chain, both directions - #119
Closed
Vasanthdev2004 wants to merge 2 commits into
Closed
Vasanthdev2004 wants to merge 2 commits into
Vasanthdev2004 wants to merge 2 commits into
Conversation
Robinhood Chain's dollar is USDG (Global Dollar, Paxos, 6 decimals, 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168), and the launch form already prices Robinhood tokens in it. The bridge now offers it as a send and receive asset on Robinhood Chain next to ETH. - types: per-chain asset table; USDG added for 4663; asset names, bridgeTokenAsset() for the chain's one ERC-20, isDollarAsset() - validation: symbols come from the chain table; dollar-to-dollar routes (USDC <-> USDG) must quote within 95%..105% of the amount sent, on top of the existing fee and impact limits - approval, client, useBridge, BridgeDialog: token-generic wording, dollar asset is kept when switching chains (USDC <-> USDG) - tests: USDG routes both ways, token substitution refused, dollar bound enforced; live suite sizes amounts by decimals (16/16 routes) - docs/bridge.md: USDG section
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 10, 2026
Collaborator
Author
|
Closed in favour of #135, which holds the whole bridge update in one PR. The commits from this PR are in it unchanged. |
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.
Stacked on #118 (Relay router v3.2 fix). Base is
fix/bridge-relay-routerso this diff shows only the USDG change; GitHub retargets it tomainonce #118 merges.What
Robinhood Chain's dollar is USDG (Global Dollar, issued by Paxos, 6 decimals,
0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168, checked on-chain). The launch form already prices Robinhood tokens in it, but the bridge could only move ETH there. Now USDG is a send and receive asset on Robinhood Chain:How
types.ts: one asset table per chain; USDG added for 4663. NewbridgeTokenAsset()(the chain's one ERC-20) andisDollarAsset().validation.ts: no rule loosened. Symbols now come from the chain table. A new bound for dollar-to-dollar routes (USDC <-> USDG): the quoted minimum and the expected output must sit within 95%..105% of the amount sent, on top of the existing fee and impact limits.approval.ts,client.ts,useBridge.ts,BridgeDialog.tsx: token-generic wording ("exact token approval"). Switching chains keeps a dollar as a dollar (USDC <-> USDG). The picker shows "Global Dollar · Gas in ETH".docs/bridge.md: USDG section.Checks
tscclean,eslint0 errorsRUN_BRIDGE_LIVE_TESTS=1, unsigned, example address): 16/16 routes verify, including all USDG routes