mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
fix nano decimals
This commit is contained in:
@@ -172,7 +172,7 @@ abstract class BuySellViewModelBase extends WalletChangeListenerViewModel with S
|
||||
}
|
||||
|
||||
Money amountForQuote(Quote quote) => Money.safeParse(
|
||||
(double.parse(fiatAmount) / quote.rate).toStringAsFixed(cryptoCurrency.decimals),
|
||||
(double.parse(fiatAmount) / quote.rate).toStringAsFixed(min(20, cryptoCurrency.decimals)),
|
||||
cryptoCurrency);
|
||||
|
||||
Money? fiatAmountForQuote(Quote quote) {
|
||||
|
||||
Reference in New Issue
Block a user