Updated on 2026-08-14

This commit is contained in:
Tangem 2024-10-22 13:01:54 +04:00
parent 568e735d23
commit f1a23ce047
2 changed files with 10 additions and 7 deletions

View file

@ -409,6 +409,8 @@ internal class DefaultStakingRepository(
Timber.i("No yield balances available for $userWalletId")
stakingBalanceStore.store(userWalletId, emptySet())
cacheRegistry.invalidate(getYieldBalancesKey(userWalletId))
return@invokeOnExpire
}

View file

@ -131,13 +131,14 @@ internal class WalletWarningsClickIntentsImplementor @Inject constructor(
derivePublicKeysUseCase(
userWalletId = userWallet.walletId,
currencies = missedAddressCurrencies,
).onLeft {
Timber.e(it, "Failed to derive public keys")
return@launch
}
// Refresh must be set to true to ensure that yield balances are updated
fetchTokenListUseCase(userWallet.walletId, mode = RefreshMode.SKIP_CURRENCIES)
).fold(
ifLeft = { Timber.e(it, "Failed to derive public keys") },
ifRight = {
fetchTokenListUseCase(userWallet.walletId, mode = RefreshMode.SKIP_CURRENCIES).onLeft {
Timber.e("Unable to refresh token list: $it")
}
},
)
}
}