fix: prevent staking dashboard hang when exposure flag not cached

isPagedExposuresUsed() called storageCache.getEntry() which suspends
forever if the entry doesn't exist. The flag is only written by
ValidatorExposureUpdater (staking detail flow), so the dashboard
would hang indefinitely waiting for it.

Check cache first with isFullKeyInCache() and default to paged
exposures when the flag is absent. Also remove debug log statements.
This commit is contained in:
Kurdistan Tech Ministry committed 2026-02-27 13:41:26 +03:00
1 parent 2d0d46688e
commit 894e5dac22
5 files changed
+10 -21

No files matched your search

@@ -156,7 +156,6 @@ class PezkuwiDashboardRepository(
}
kycModule.storage("KycStatuses").query(accountId, binding = { decoded ->
val enumName = decoded?.castToDictEnum()?.name
Log.d("PezkuwiDashboard", "KYC status raw enum: '$enumName' (decoded=$decoded)")
when (enumName) {
"PendingReferral" -> CitizenshipStatus.PENDING_REFERRAL
"ReferrerApproved" -> CitizenshipStatus.REFERRER_APPROVED