Skip to content

Conversation

@aimensahnoun
Copy link
Member

@aimensahnoun aimensahnoun commented Apr 18, 2025

Changes

  • Added native USDC tokens for:

    • Polygon (0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359)
    • Optimism (0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85)
    • Arbitrum One (0xaf88d065e77c8cC2239327C5EDb3A432268e5831)
  • Renamed existing bridged USDC tokens to USDC.e for clarity:

    • Polygon: "USD Coin (PoS) (USDC.e)"
    • Optimism: "USD Coin (Bridged from Ethereum) (USDC.e)"
  • Added new stablecoin tokens:

    • Arbitrum One:
      • USDT (0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9)
      • DAI (0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1)
    • Base:
      • DAI (0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb)
      • USDT (0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2)

Details:

  • Some of the tokens existing in the list such as USDC-matic was USDC.e instead of native USDC, this PR aims to clarify that. For more details about differences of the two tokens, you can read this article

  • USDC-matic will still be the ID of USDC.e to ensure the backwards compatibility of existing requests, since the token ID is the main identifier of used currency in a request. The native USDC is now added to the list under USDCn-matic, this is the case of all chains that already had a USDC.e.

Summary

This PR updates the token list to properly distinguish between native and bridged USDC tokens across different chains, while also adding support for additional stablecoins (DAI, USDT) on Arbitrum One and Base networks. This improves clarity for users and expands the available stablecoin options on supported networks.

Summary by CodeRabbit

  • New Features
    • Added new stablecoins (USDC, USDT, DAI) and their variants across Polygon, Optimism, Arbitrum One, and Base networks.
  • Enhancements
    • Improved clarity of token names and symbols to distinguish between native, bridged, and wrapped versions.
    • Updated token details for greater accuracy and consistency across supported networks.

@coderabbitai
Copy link

coderabbitai bot commented Apr 18, 2025

Walkthrough

The changes update the token-list.json file by adding new token entries and refining existing ones for several blockchain networks. The updates focus on stablecoins such as USDC, USDT, and DAI, introducing both native and bridged/wrapped variants for networks like Polygon, Optimism, Arbitrum One, and Base. Existing token names and symbols were clarified to distinguish between different token types. No tokens were removed; instead, the list was expanded and existing entries were modified for greater precision. No code or logic was altered—only the token metadata was updated.

Changes

File(s) Change Summary
tokens/token-list.json Added new token entries (USDC, USDT, DAI) for Polygon, Optimism, Arbitrum One, and Base networks; clarified names and symbols for existing tokens to distinguish between native and bridged/wrapped variants; no tokens removed.

Sequence Diagram(s)

No sequence diagram is generated as the changes are limited to data updates in a JSON file and do not affect control flow or logic.

Tip

⚡💬 Agentic Chat (Pro Plan, General Availability)
  • We're introducing multi-step agentic chat in review comments and issue comments, within and outside of PR's. This feature enhances review and issue discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments and add commits to existing pull requests.

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
tokens/token-list.json (2)

7611-7621: Review: Bridged USDC renamed to USDC.e on Polygon
You updated the symbol to USDCe and clarified the name. However, the id remains USDC-matic, which may cause confusion. Consider renaming it to USDCe-matic to match the symbol and improve discoverability.


7755-7764: Review: Bridged USDC entry on Optimism
The bridged USDC (USDCe) entry on Optimism correctly reflects the USDC.e naming. To maintain parity with the Polygon changes, consider updating the id field to USDCe-optimism so it aligns with the symbol.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 22b8ffd and 0222c22.

📒 Files selected for processing (1)
  • tokens/token-list.json (4 hunks)
🔇 Additional comments (8)
tokens/token-list.json (8)

7601-7609: Review: Native USDC entry on Polygon
The new native USDC entry (USDCn-matic) is structurally correct. Please verify the contract address 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359 against official Polygon documentation or PolygonScan. Additionally, consider aligning the id naming convention (e.g., USDC-matic or USDC-native-matic) with other networks for consistency.


7765-7775: Review: Native USDC entry on Optimism
The native USDC addition for Optimism (USDCn-optimism) is properly formatted. Please verify the contract address 0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85 against official sources. Also, decide if the id should be USDC-optimism (dropping the n) for naming consistency with other networks’ native tokens.


7930-7940: Review: Native USDC entry on Arbitrum One
The USDC-arbitrum-one entry is consistent with other native token patterns. Ensure that 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 matches the official Arbitrum One deployment.


7941-7951: Approve: USDT entry on Arbitrum One
The addition of USDT (USD Tether) on Arbitrum One is correct, with proper decimals and valid address 0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9.


7952-7962: Approve: DAI entry on Arbitrum One
The DAI token entry for Arbitrum One is accurate. The address 0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1 and decimals are correct.


8085-8094: Review: Native USDC entry on Base
The USDC addition for Base appears correct. Please confirm the contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and consider if the id needs a suffix (e.g., USDC-base) to avoid clashes with other network entries.


8095-8105: Approve: DAI entry on Base
The DAI (Dai Stablecoin) entry on Base is well-formed, with correct decimals and address 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb.


8106-8116: Approve: USDT entry on Base
The USDT addition for Base (USD Tether) is correct, with the right decimals and address 0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2.

Copy link
Member

@MantisClone MantisClone left a comment

Choose a reason for hiding this comment

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

Please add a Considerations section to the description explaining why these values were chosen, especially IDs. 🙏

Include:

  • Link to page explaining USDC (Native) vs USDC.e (Bridged)
  • Explain that we don't want to change IDs but we're okay adjusting symbols and names. So existing Bridged USDC will keep IDs like USDC and Native USDC gets IDs like USDCn (notice the n suffix).
  • Mention intention to maintain backward compatibility with existing requests and consistency with Request Finance's currency API.

@aimensahnoun aimensahnoun enabled auto-merge (squash) April 21, 2025 11:25
@aimensahnoun aimensahnoun merged commit 7c39a01 into main Apr 21, 2025
6 checks passed
@aimensahnoun aimensahnoun deleted the 9-fix-usdce-bridged-in-token-list-and-add-usdc-native branch April 21, 2025 16:15
@MantisClone MantisClone linked an issue Apr 22, 2025 that may be closed by this pull request
@coderabbitai coderabbitai bot mentioned this pull request Sep 17, 2025
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.

Fix USDC.e (Bridged) in Token List and add USDC (Native)

3 participants