mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
fix lightining fiat prices
This commit is contained in:
parent
d9c5629180
commit
5c5eb5965f
1 changed files with 7 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue