Add all deposit for litcoin (#932)
Godwin Asuquo committed
Jul 11, 2023 at 03:52 UTC
bf0c2c8f351ca94a9439e31cab8e767c3ef123de
1 file changed
+2
-2
lib/view_model/exchange/exchange_view_model.dart
+2
-2
@@ -221,7 +221,7 @@ abstract class ExchangeViewModelBase with Store {
221
222
223
bool get hasAllAmount =>
224
- wallet.type == WalletType.bitcoin && depositCurrency == wallet.currency;
224
+ (wallet.type == WalletType.bitcoin || wallet.type == WalletType.litecoin) && depositCurrency == wallet.currency;
225
226
bool get isMoneroWallet => wallet.type == WalletType.monero;
227
@@ -566,7 +566,7 @@ abstract class ExchangeViewModelBase with Store {
566
567
@action
568
void calculateDepositAllAmount() {
569
- if (wallet.type == WalletType.bitcoin) {
569
+ if (wallet.type == WalletType.bitcoin || wallet.type == WalletType.litecoin) {
570
final availableBalance = wallet.balance[wallet.currency]!.available;
571
final priority = _settingsStore.priority[wallet.type]!;
572
final fee = wallet.calculateEstimatedFee(priority, null);