fix lightining fiat prices

This commit is contained in:
fosse 2024-02-27 16:01:51 -05:00
parent d9c5629180
commit 5c5eb5965f

View file

@ -29,6 +29,13 @@ Future<void> startFiatRateUpdate(
if (appStore.wallet!.type == WalletType.haven) {
await updateHavenRate(fiatConversionStore);
} else if (appStore.wallet!.type == WalletType.lightning) {
fiatConversionStore.prices[appStore.wallet!.currency] =
await FiatConversionService.fetchPrice(
crypto: appStore.wallet!.currency,
fiat: settingsStore.fiatCurrency,
torOnly: settingsStore.fiatApiMode == FiatApiMode.torOnly) /
100000000;
} else {
fiatConversionStore.prices[appStore.wallet!.currency] =
await FiatConversionService.fetchPrice(
@ -53,7 +60,6 @@ Future<void> startFiatRateUpdate(
solana!.getSPLTokenCurrencies(appStore.wallet!).where((element) => element.enabled);
}
if (currencies != null) {
for (final currency in currencies) {
() async {