Skip to content

Commit

Permalink
Change USDC decimal places from 2 to 6
Browse files Browse the repository at this point in the history
This fix can introduce a breaking change

Before:
```
Money.new(100, "USDC").to_s
 => "1.00"
```


After:
```
Money.new(100, "USDC").to_s
 => "0.000100" 
```

Close #1081
  • Loading branch information
tagliala committed Mar 21, 2024
1 parent 73b84b5 commit 00aef06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Upcoming

-
- **Potential breaking change**: Fix USDC decimals places from 2 to 6

## 6.19.0

Expand Down
2 changes: 1 addition & 1 deletion config/currency_non_iso.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"disambiguate_symbol": "USDC",
"alternate_symbols": [],
"subunit": "Cent",
"subunit_to_unit": 100,
"subunit_to_unit": 1000000,
"symbol_first": false,
"html_entity": "$",
"decimal_mark": ".",
Expand Down

0 comments on commit 00aef06

Please sign in to comment.