Skip to content

Commit f5d8b53

Browse files
authored
feat:CP-9655 handle more digits in fee usd value (#125)
1 parent 5209e15 commit f5d8b53

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/contexts/utils/getCurrencyFormatter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const getCurrencyFormatter = (currency = 'USD') => {
66
style: 'currency',
77
currency: currency,
88
currencyDisplay: 'narrowSymbol',
9+
maximumSignificantDigits: 6,
910
});
1011

1112
return (amount: number) => {

src/utils/calculateGasAndFees.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function calculateGasAndFees({
4848
fee: fee.toDisplay(),
4949
bnFee,
5050
feeUSD: price
51-
? price.mul(fee).toDisplay({ fixedDp: 2, asNumber: true })
51+
? price.mul(fee).toDisplay({ fixedDp: 6, asNumber: true })
5252
: null,
5353
tipUSD:
5454
price && tip

0 commit comments

Comments
 (0)