update string in token amount formatting (#1539)

This commit is contained in:
Ian Lapham 2021-05-12 14:19:01 -04:00 committed by GitHub
parent 397a20b9ec
commit dd33205bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,7 @@ export function formatTokenAmount(amount: CurrencyAmount<Currency> | undefined,
}
if (amount.divide(amount.decimalScale).lessThan(new Fraction(1, 100000))) {
return '<0.000001'
return '<0.00001'
}
return amount.toSignificant(Math.min(sigFigs, amount.currency.decimals))