Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-08 15:12:38 +05:00
parent ef6918ce4a
commit 76c129f205
4 changed files with 12 additions and 12 deletions

View file

@ -1251,14 +1251,8 @@ internal class TokenDetailsModel @Inject constructor(
}
private fun handleNavigationParam() {
when (val action = params.navigationAction) {
is NavigationAction.Staking -> openStaking()
is NavigationAction.YieldSupply -> if (action.isActive) {
modelScope.launch(dispatchers.default) {
fetchCurrencyStatusUseCase(userWalletId = userWalletId, id = cryptoCurrency.id)
}
}
else -> Unit
if (params.navigationAction is NavigationAction.Staking) {
openStaking()
}
}

View file

@ -89,6 +89,12 @@ internal class YieldSupplyModel @Inject constructor(
val isAvailable = yieldSupplyIsAvailableUseCase(params.userWalletId, params.cryptoCurrency)
if (isAvailable) {
subscribeOnCurrencyStatusUpdates()
singleNetworkStatusFetcher(
params = SingleNetworkStatusFetcher.Params(
userWalletId = userWallet.walletId,
network = cryptoCurrency.network,
),
)
}
}
}