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 {