From 00aef06fdecc1226ebce3395b4043cca0dbe34a7 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Thu, 21 Mar 2024 11:21:47 +0100 Subject: [PATCH] Change USDC decimal places from 2 to 6 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 --- CHANGELOG.md | 2 +- config/currency_non_iso.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a661446471..d42541955d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Upcoming -- +- **Potential breaking change**: Fix USDC decimals places from 2 to 6 ## 6.19.0 diff --git a/config/currency_non_iso.json b/config/currency_non_iso.json index 3778e4ed44..75764fb02a 100644 --- a/config/currency_non_iso.json +++ b/config/currency_non_iso.json @@ -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": ".",