From 6d3a1d6e89bbe4a396c42c53899dbb44668efc8a Mon Sep 17 00:00:00 2001 From: Tangem Date: Mon, 15 Sep 2025 19:11:08 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../wallet/domain/GetMultiWalletWarningsFactory.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/domain/GetMultiWalletWarningsFactory.kt b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/domain/GetMultiWalletWarningsFactory.kt index 41f8f7dea4..8243fa0635 100644 --- a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/domain/GetMultiWalletWarningsFactory.kt +++ b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/domain/GetMultiWalletWarningsFactory.kt @@ -277,7 +277,7 @@ internal class GetMultiWalletWarningsFactory @Inject constructor( ) { addIf( element = WalletNotification.Warning.YeildSupplyApprove, - condition = tokenList.hasNetworksWithLendingsWithoutApprove(), + condition = tokenList.hasTokensWithActivatedSupplyWithoutApprove(), ) } @@ -311,7 +311,7 @@ internal class GetMultiWalletWarningsFactory @Inject constructor( return tokenList.flattenCurrencies().any { it.value is CryptoCurrencyStatus.Unreachable } } - private fun Lce.hasNetworksWithLendingsWithoutApprove(): Boolean { + private fun Lce.hasTokensWithActivatedSupplyWithoutApprove(): Boolean { val tokenList = getOrNull(isPartialContentAccepted = false) ?: return false val yieldSupplyEnabled = yieldSupplyFeatureToggles.isYieldSupplyFeatureEnabled return yieldSupplyEnabled && tokenList.flattenCurrencies().any {