-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Better min and max range in disburse maturity (#3340)
# Motivation The range of the predicted tokens in the disbursing flow is an approximation of two decimals. By default, the decimals were rounded the standard way. That meant that the min range could be rounded up and give a wrong min, or the max range rounded down and give a wrong max. In this PR, we add the `roundingMode` parameter to `formatToken` and use it for the range. # Changes * Add `roundingMode` param to `formatToken`. * Use param `roundingMode` for the range in DisburseMaturityModal confirmation screen. # Tests * Add skipped tests because the new parameter is only supported in node 19 and we are in node 18. # Todos - [ ] Add entry to changelog (if necessary). Not necessary. Covered by an entry.
- Loading branch information
Showing
4 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
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