mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
fixes
This commit is contained in:
parent
f80e3bdcc9
commit
7b051206bb
3 changed files with 5 additions and 4 deletions
|
@ -6,7 +6,7 @@ CryptoCurrency currencyForWalletType(WalletType type) {
|
||||||
case WalletType.bitcoin:
|
case WalletType.bitcoin:
|
||||||
return CryptoCurrency.btc;
|
return CryptoCurrency.btc;
|
||||||
case WalletType.lightning:
|
case WalletType.lightning:
|
||||||
return CryptoCurrency.btc;
|
return CryptoCurrency.btcln;
|
||||||
case WalletType.monero:
|
case WalletType.monero:
|
||||||
return CryptoCurrency.xmr;
|
return CryptoCurrency.xmr;
|
||||||
case WalletType.litecoin:
|
case WalletType.litecoin:
|
||||||
|
|
|
@ -1239,7 +1239,7 @@ Future<void> setup({
|
||||||
getIt.get<AppStore>().wallet!,
|
getIt.get<AppStore>().wallet!,
|
||||||
getIt.get<SettingsStore>(),
|
getIt.get<SettingsStore>(),
|
||||||
getIt.get<FiatConversionStore>(),
|
getIt.get<FiatConversionStore>(),
|
||||||
() => CryptoCurrency.btc,
|
() => CryptoCurrency.btcln,
|
||||||
),
|
),
|
||||||
authService: getIt.get<AuthService>(),
|
authService: getIt.get<AuthService>(),
|
||||||
);
|
);
|
||||||
|
|
|
@ -145,8 +145,8 @@ abstract class ExchangeViewModelBase extends WalletChangeListenerViewModel with
|
||||||
ChangeNowExchangeProvider(settingsStore: _settingsStore),
|
ChangeNowExchangeProvider(settingsStore: _settingsStore),
|
||||||
SideShiftExchangeProvider(),
|
SideShiftExchangeProvider(),
|
||||||
SimpleSwapExchangeProvider(),
|
SimpleSwapExchangeProvider(),
|
||||||
TrocadorExchangeProvider(useTorOnly: _useTorOnly,
|
TrocadorExchangeProvider(
|
||||||
providerStates: _settingsStore.trocadorProviderStates),
|
useTorOnly: _useTorOnly, providerStates: _settingsStore.trocadorProviderStates),
|
||||||
if (FeatureFlag.isExolixEnabled) ExolixExchangeProvider(),
|
if (FeatureFlag.isExolixEnabled) ExolixExchangeProvider(),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -599,6 +599,7 @@ abstract class ExchangeViewModelBase extends WalletChangeListenerViewModel with
|
||||||
receiveCurrency = CryptoCurrency.btc;
|
receiveCurrency = CryptoCurrency.btc;
|
||||||
break;
|
break;
|
||||||
case WalletType.bitcoin:
|
case WalletType.bitcoin:
|
||||||
|
case WalletType.lightning:
|
||||||
depositCurrency = CryptoCurrency.btc;
|
depositCurrency = CryptoCurrency.btc;
|
||||||
receiveCurrency = CryptoCurrency.xmr;
|
receiveCurrency = CryptoCurrency.xmr;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue