From bf0c2c8f351ca94a9439e31cab8e767c3ef123de Mon Sep 17 00:00:00 2001 From: Godwin Asuquo <41484542+godilite@users.noreply.github.com> Date: Tue, 11 Jul 2023 03:52:40 +0300 Subject: [PATCH] Add all deposit for litcoin (#932) --- lib/view_model/exchange/exchange_view_model.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/view_model/exchange/exchange_view_model.dart b/lib/view_model/exchange/exchange_view_model.dart index 2b848a5ae..23ba17ade 100644 --- a/lib/view_model/exchange/exchange_view_model.dart +++ b/lib/view_model/exchange/exchange_view_model.dart @@ -221,7 +221,7 @@ abstract class ExchangeViewModelBase with Store { bool get hasAllAmount => - wallet.type == WalletType.bitcoin && depositCurrency == wallet.currency; + (wallet.type == WalletType.bitcoin || wallet.type == WalletType.litecoin) && depositCurrency == wallet.currency; bool get isMoneroWallet => wallet.type == WalletType.monero; @@ -566,7 +566,7 @@ abstract class ExchangeViewModelBase with Store { @action void calculateDepositAllAmount() { - if (wallet.type == WalletType.bitcoin) { + if (wallet.type == WalletType.bitcoin || wallet.type == WalletType.litecoin) { final availableBalance = wallet.balance[wallet.currency]!.available; final priority = _settingsStore.priority[wallet.type]!; final fee = wallet.calculateEstimatedFee(priority, null);