Commit 7d45ff5c authored by Moody Salem's avatar Moody Salem

fix 0 decimal tokens error

parent 8964cf86
...@@ -14,7 +14,7 @@ export function formatTokenAmount(amount: CurrencyAmount<Currency> | undefined, ...@@ -14,7 +14,7 @@ export function formatTokenAmount(amount: CurrencyAmount<Currency> | undefined,
return '<0.00001' return '<0.00001'
} }
return amount.toSignificant(Math.min(sigFigs, amount.currency.decimals)) return amount.toSignificant(sigFigs)
} }
export function formatPrice(price: Price<Currency, Currency> | undefined, sigFigs: number) { export function formatPrice(price: Price<Currency, Currency> | undefined, sigFigs: number) {
......
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