Skip to content

Commit

Permalink
AND-8709 Fixed balance updating.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sateetas committed Oct 9, 2024
1 parent 7158a44 commit e2b5292
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import com.tangem.utils.extensions.orZero
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import timber.log.Timber

@Suppress("LargeClass", "LongParameterList", "TooManyFunctions")
internal class DefaultStakingRepository(
Expand Down Expand Up @@ -305,7 +306,10 @@ internal class DefaultStakingRepository(

if (integrationId == null || address.isNullOrBlank()) {
cacheRegistry.invalidate(getYieldBalancesKey(userWalletId))
error("IntegrationId or address is null")
Timber.w(
"IntegrationId or address is null fetching ${cryptoCurrency.name} staking balance",
)
return@invokeOnExpire
}

val requestBody = getBalanceRequestData(address, integrationId)
Expand Down

0 comments on commit e2b5292

Please sign in to comment.