- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3
Change token usds #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…amed to Stably USD Classic (USDSC) and is no longer supported by the issuer. For more information, please refer to https://stably.io/usdsc
| WalkthroughReplaced Husky pre-commit inline commands with sourcing a helper script; updated tokens/token-list.json by adding GHO and USDS (multi-network) entries, adding mUSD-metamask-mainnet (MetaMask USD, 6 decimals), and modifying the existing mUSD-mainnet entry (renamed to mStable USD with new address/hash). No public API declarations changed. Changes
 Sequence Diagram(s)sequenceDiagram
  autonumber
  actor Dev as Developer
  participant Git as Git
  participant Hook as Husky pre-commit
  participant H as Helper script "h"
  Dev->>Git: git commit
  Git->>Hook: invoke pre-commit
  Hook->>H: . "$(dirname "$0")/h"
  rect rgba(200,230,255,0.25)
    note right of H: delegated hook logic (format/check/validate)
    H->>H: run format, check, add, validate
  end
  H-->>Hook: exit status
  alt success
    Hook-->>Git: allow commit
  else failure
    Hook-->>Git: block commit
  end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 
 Possibly related PRs
 Suggested reviewers
 Pre-merge checks and finishing touches❌ Failed checks (1 warning)
 ✅ Passed checks (2 passed)
 ✨ 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  | 
| Hello @pclaesen, thank you for submitting your first pull request to the request-token-list repository. We value your contribution and encourage you to review our contribution guidelines to ensure your submission meets our standards. Please note that every merged PR is automatically enrolled in our Best PR Initiative, offering a chance to win $500 each quarter. Our team is available via GitHub Discussions or Discord if you have any questions. Welcome aboard! | 
| Thank you for your submission! As you prepare for the review process, please ensure that your PR title, description, and any linked issues fully comply with our contribution guidelines. A clear explanation of your changes and their context will help expedite the review process. Every merged PR is automatically entered into our Best PR Initiative, offering a chance to win $500 every quarter. We appreciate your attention to detail and look forward to reviewing your contribution! | 
| All tests are passing, but there are 2 tokens with the same ID in the list: I don't think the tests should pass, especially not the  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️  Outside diff range comments (1)
tokens/token-list.json (1)
3-8: Version and timestamp not updatedTokens were added/modified; bump the list version (per token-list semver: add = minor, metadata tweak = patch) and refresh the ISO timestamp.
Example:
- "timestamp": "2025-01-09T11:39:10.425Z", + "timestamp": "2025-09-17T00:00:00.000Z", "version": { - "major": 1, - "minor": 0, - "patch": 0 + "major": 1, + "minor": 1, + "patch": 0 },
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
- .husky/_/pre-commit(1 hunks)
- tokens/token-list.json(5 hunks)
🔇 Additional comments (4)
tokens/token-list.json (4)
4333-4343: GHO mainnet entry: looks correct; please double-check against issuer docsAddress/decimals/network match expectations for GHO; just confirm against the official registry before merge.
5633-5641: USDS (mainnet): confirm issuer and address to avoid symbol collisionsUSDS ticker is ambiguous across ecosystems. Please confirm the issuer and contract at
0xdC035D...384Fin the PR description and commit message.
7799-7808: USDS (Optimism): verify chain address and decimalsValidate the Optimism contract and decimals (18) with issuer docs or chain explorers.
7975-7984: USDS (Arbitrum One): verify chain address and decimalsSame as above; confirm correctness before publishing.
| npm run check | ||
| git add -A | ||
| npm run validate | ||
| . "$(dirname "$0")/h" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Sourcing helper script: verify existence and execution flow
Ensure .husky/_/h exists, is committed, and sets strict flags (e.g., set -eu) so the hook fails fast. Also consider adding a trailing newline to this file.
Run:
🏁 Script executed:
#!/bin/bash
set -eu
# Verify helper presence and permissions
test -f .husky/_/h && echo "found .husky/_/h" || (echo "missing .husky/_/h" && exit 1)
# Show first lines for sanity (should include set -e or similar)
head -n 5 .husky/_/h || trueLength of output: 18
Add the missing husky helper (.husky/_/h) — pre-commit will fail
- .husky//h is missing; .husky//pre-commit (line 2) sources it: '. "$(dirname "$0")/h"'.
- Fix: add & commit .husky/_/h, ensure it begins with strict flags (e.g., set -eu), is readable, and ends with a trailing newline.
🤖 Prompt for AI Agents
In .husky/_/pre-commit around line 2, the script sources .husky/_/h which is
missing; add and commit the .husky/_/h helper file containing the required
helper functions, make it executable/readable, start it with strict shell flags
(for example include set -eu near the top), ensure it ends with a trailing
newline, and verify the pre-commit script can source it without errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
- tokens/token-list.json(5 hunks)
🔇 Additional comments (6)
tokens/token-list.json (6)
5643-5652: Duplicate-id fix for mUSD verified and approved.Dedupe checks pass with no duplicate IDs or network-address collisions. The "mUSD-metamask-mainnet" ID successfully disambiguates MetaMask USD from mStable's "mUSD-mainnet" entry.
6446-6455: Verification complete: mStable mUSD details confirmed.The contract address 0xe2f2a5C287993345a840Db3B0845fbC70f5935a5 and 18 decimals match Etherscan and mStable documentation for Ethereum mainnet. All token entry values are accurate.
4333-4343: GHO (mainnet) entry verified as correct.The mainnet contract address (0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f) and decimals (18) match the official Aave documentation. The entry is ready to merge.
7799-7808: I need to identify which USDS token this is to verify the details. Let me search for the specific contract address:Let me search more specifically for USDS token projects on Optimism:
Based on my research, I can confirm this is the Sky/USDS token (the evolved form of MakerDAO's DAI). USDS is supported across multiple L2s via SkyLink on Ethereum, Base, Arbitrum, Optimism, Polygon, Avalanche, and Solana, and there is a Maker/Sky-controlled vault for DAI, USDS and sUSDS on Optimism.
However, my web searches did not return specific contract addresses for USDS on individual chains, so I cannot definitively confirm whether
0x4F13a96EC5C4Cf34e442b46Bbd98a0791F20edC3is the official contract address for USDS on Optimism. The decimals value of 18 appears reasonable for this token.Verify the USDS contract address and confirm current L2 deployment scope.
The entry appears structurally sound, but you should directly verify against official Sky documentation or Etherscan that the Optimism address is correct and whether the set of supported L2s (Arbitrum, Base, Polygon, etc.) should also be added to maintain parity across the token list.
5633-5641: Based on my verification, the review comment's concerns are technically valid but require clarification on PR scope. I cannot determine from codebase inspection alone whether this is a NEW change or reviewing existing state post-commit d4ccfd2.Key findings:
Sky/MakerDAO's USDS contract (0xdC035D45d973E3EC169d2276DDab16f1e407384F) with decimals 18 is verified as correct.
USDSC is the canonical symbol for legacy Stably USD Classic.
Critical gap: A prior commit (d4ccfd2, Sept 5) already changed USDS-mainnet to point to Sky, but:
- Version remains 1.0.0 (not bumped for the breaking change)
- No USDSC entry was created despite the commit message stating the legacy token "has been renamed"
No USDSC or "Stably USD Classic" entry currently exists in the token list.
The review comment is valid: If this PR is adding/modifying USDS-mainnet, either bump the major version with migration notes OR add a new id for Sky's USDS while preserving backward compatibility. Additionally, the missing USDSC entry for legacy Stably should be addressed.
Please clarify: Is this PR making NEW changes to USDS-mainnet, or is it addressing the incomplete migration from a prior commit? Also confirm whether USDSC should be added in this PR.
3-8: Review comment addresses wrong token; actual change is to mUSD, not USDS.The git diff shows only one change: the mUSD token id was repointed from
"mUSD-mainnet"to"mUSD-metamask-mainnet". This is a breaking change to the token id. The review comment's guidance about version bumping logic does apply, but to mUSD (requiring a major bump for the breaking id change), not USDS. No USDS tokens were modified in this PR, so the premise of the review comment is incorrect.Likely an incorrect or invalid review comment.
Change USDS token to MakerDao token (Sky):
StableUSD has been renamed to Stably USD Classic (USDSC) and is no longer supported by the issuer. For more information, please refer to https://stably.io/usdsc.
Add GHO
Add MetaMask USD (mUSD)
Summary by CodeRabbit
New Features
Bug Fixes
Chores