Skip to content

fix: USDB decimals on XDC - #1882

Merged
willdias-consensys merged 1 commit into
masterfrom
agent/fix-usdb-decimals
Jul 28, 2026
Merged

fix: USDB decimals on XDC#1882
willdias-consensys merged 1 commit into
masterfrom
agent/fix-usdb-decimals

Conversation

@willdias-consensys

@willdias-consensys willdias-consensys commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Corrects the XDC USDB token metadata for 0xA23885c8E0743C734Bd6Da0df66e2631Ee9Bc6D8 from 18 decimals to 6.

Why

The stored decimal precision was incorrect, which can cause consumers to display USDB balances with the wrong scale.

Validation

  • npm run asset:verify -- --caip 'eip155:50/erc20:0xA23885c8E0743C734Bd6Da0df66e2631Ee9Bc6D8'
  • yarn test

Note

Low Risk
Single-field metadata correction with no application logic changes; wrong decimals in production would have been the higher-risk state.

Overview
Updates USDB token metadata on XDC (eip155:50, 0xA23885c8E0743C734Bd6Da0df66e2631Ee9Bc6D8) so decimals is 6 instead of 18, matching on-chain precision and aligning with other 6-decimal stablecoins on the same chain.

This fixes incorrect balance scaling for any consumer that reads decimals from this metadata file.

Reviewed by Cursor Bugbot for commit a265201. Bugbot is set up for automated code reviews on this repo. Configure here.

@willdias-consensys
willdias-consensys marked this pull request as ready for review July 28, 2026 13:51
@willdias-consensys
willdias-consensys requested review from a team and MRabenda as code owners July 28, 2026 13:51
@willdias-consensys willdias-consensys changed the title Fix USDB decimals on XDC fix: USDB decimals on XDC Jul 28, 2026
@willdias-consensys
willdias-consensys merged commit 5b306d1 into master Jul 28, 2026
9 checks passed
@willdias-consensys
willdias-consensys deleted the agent/fix-usdb-decimals branch July 28, 2026 13:56
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.

3 participants