This commit is contained in:
Matthew Fosse 2024-03-01 14:00:07 -08:00
parent f80e3bdcc9
commit 7b051206bb
3 changed files with 5 additions and 4 deletions

View file

@ -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:

View file

@ -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>(),
); );

View file

@ -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;