-
Notifications
You must be signed in to change notification settings - Fork 625
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
Incorrect Number of Decimals in USDC Currency #1081
Comments
Hi, it is pretty clear that USDC has 6 decimal places, but is there an official reference? |
The official reference would probably be to check the -> decimals = 6 -- Another related question: If I'd save USDC with How can I now use |
What about the subunit name? I guess that |
You can change the migrations and just use whatever column name suits your case better then I usually just continue using |
welcome a PR, to update this. just not something we actively monitor ourselves. |
I can work on this (at the end of next week), can you please reopen for tracking purposes? |
Sure. Done. |
checking in on status |
Confirm that I will have time during this weekend |
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 RubyMoney#1081
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 RubyMoney#1081
In
config/currency_non_iso.json
, the currency configuration forusdc
is configured for"subunit_to_unit": 100
, however, USDC supports six decimal places of precision, not 2.The configuration for
usdc
should show"subunit_to_unit": 1000000
.The text was updated successfully, but these errors were encountered: