aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-24 11:02:50 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-24 11:05:43 +0800
commit47737d4d0fce56454c9ee2b43782b824b88cb942 (patch)
tree808d167f371963ad858002a7bb631c7a8906d029 /packages/instant/src/util
parent2e184f081e546acbc8ed3e5e05de5a9e5b56a3d8 (diff)
downloaddexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.gz
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.bz2
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.lz
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.xz
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.zst
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.zip
feat: cover more token symbol edge cases
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r--packages/instant/src/util/format.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/util/format.ts b/packages/instant/src/util/format.ts
index 8482b1526..ca7c01359 100644
--- a/packages/instant/src/util/format.ts
+++ b/packages/instant/src/util/format.ts
@@ -24,7 +24,7 @@ export const format = {
if (_.isUndefined(ethUnitAmount)) {
return defaultText;
}
- const roundedAmount = ethUnitAmount.round(decimalPlaces);
+ const roundedAmount = ethUnitAmount.round(decimalPlaces).toDigits(decimalPlaces);
return `${roundedAmount} ETH`;
},
ethBaseAmountInUsd: (