forked from LaconicNetwork/cosmos-explorer
optimize token format
This commit is contained in:
1 parent
22123af7c8
commit
aa2ceae79c
2 files changed
+2
-2
No files matched your search
@@ -304,7 +304,7 @@ export function formatTokenAmount(tokenAmount, fraction = 2, denom = 'uatom') {
|
||||
return parseFloat(amount)
|
||||
}
|
||||
|
||||
export function formatToken(token, IBCDenom = {}, decimals = 0) {
|
||||
export function formatToken(token, IBCDenom = {}, decimals = 2) {
|
||||
if (token) {
|
||||
return `${formatTokenAmount(token.amount, decimals, token.denom)} ${formatTokenDenom(IBCDenom[token.denom] || token.denom)}`
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user