We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2ed793 commit f4ae9d6Copy full SHA for f4ae9d6
1 file changed
packages/wallet/frontend/src/utils/helpers.ts
@@ -44,7 +44,8 @@ export const formatAmount = (args: FormatAmountArgs): FormattedAmount => {
44
45
const scaledValue = Number(`${value}e-${assetScale}`)
46
const flooredValue =
47
- Math.floor(scaledValue * 10 ** displayScale) / 10 ** displayScale
+ Math.floor(Math.round(scaledValue * 10 ** displayScale)) /
48
+ 10 ** displayScale
49
50
const symbol = getCurrencySymbol(assetCode)
51
0 commit comments