Commit dd33205b authored by Ian Lapham's avatar Ian Lapham Committed by GitHub

update string in token amount formatting (#1539)

parent 397a20b9
...@@ -11,7 +11,7 @@ export function formatTokenAmount(amount: CurrencyAmount<Currency> | undefined, ...@@ -11,7 +11,7 @@ export function formatTokenAmount(amount: CurrencyAmount<Currency> | undefined,
} }
if (amount.divide(amount.decimalScale).lessThan(new Fraction(1, 100000))) { 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)) return amount.toSignificant(Math.min(sigFigs, amount.currency.decimals))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment