forked from tari-project/tari
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add display_currency_decimal method (tari-project#3445)
Description --- The inner type of `Tari` changed from `f64` to `decimal_rs::Decimal`. Also, `display_currency` method was replaced with `format_currency` that adds separators to formatted strings. Motivation and Context --- `display_currency` method forces us to use `f64` that is not accurate for finance calculations. How Has This Been Tested? --- Updated unit tests. **TODO:** Smoke test: run the wallet and the node.
- Loading branch information
1 parent
76bc1f0
commit 1f52ffc
Showing
6 changed files
with
159 additions
and
83 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.