Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-15 13:26:18 +04:00
parent 4ee114e3cd
commit 50dca50508
12 changed files with 460 additions and 8 deletions

View file

@ -283,7 +283,7 @@ internal class YieldSupplyActiveModel @Inject constructor(
YieldSupplyActiveFeeContentTransformer(
cryptoCurrencyStatus = cryptoStatus,
appCurrency = appCurrency,
feeValue = currentFee,
feeValue = currentFee.value,
maxNetworkFee = maxFee,
analyticsHandler = analyticsHandler,
),

View file

@ -43,7 +43,6 @@ internal class YieldSupplyNotificationsComponent(
Modifier.padding(top = 16.dp)
},
containerColor = TangemTheme.colors.background.action,
iconTint = null,
)
}
}

View file

@ -6,4 +6,5 @@ import java.math.BigDecimal
data class YieldSupplyNotificationData(
val feeValue: BigDecimal?,
val feeError: GetFeeError?,
val shouldShowHighFeeNotification: Boolean = false,
)

View file

@ -74,6 +74,10 @@ internal class YieldSupplyNotificationsModel @Inject constructor(
dustValue = null,
onReload = params.callback::onFeeReload,
)
if (data.shouldShowHighFeeNotification) {
add(NotificationUM.Info.YieldSupplyHighNetworkFee)
}
}
if (notifications.any { it is NotificationUM.Error.TokenExceedsBalance }) {

View file

@ -190,7 +190,7 @@ internal class YieldSupplyStartEarningModel @Inject constructor(
updatedTransactionList = updatedTransactionList,
feeValue = feeSum,
maxNetworkFee = maxFee,
estimatedFeeValueInTokenCurrency = estimatedFee,
estimatedFeeValueInTokenCurrency = estimatedFee.value,
minAmount = minAmount,
),
)
@ -198,6 +198,7 @@ internal class YieldSupplyStartEarningModel @Inject constructor(
data = YieldSupplyNotificationData(
feeValue = feeSum,
feeError = null,
shouldShowHighFeeNotification = estimatedFee.isHighFee,
),
)
},