Updated on 2026-08-14
This commit is contained in:
parent
4ee114e3cd
commit
50dca50508
12 changed files with 460 additions and 8 deletions
|
|
@ -283,7 +283,7 @@ internal class YieldSupplyActiveModel @Inject constructor(
|
|||
YieldSupplyActiveFeeContentTransformer(
|
||||
cryptoCurrencyStatus = cryptoStatus,
|
||||
appCurrency = appCurrency,
|
||||
feeValue = currentFee,
|
||||
feeValue = currentFee.value,
|
||||
maxNetworkFee = maxFee,
|
||||
analyticsHandler = analyticsHandler,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ internal class YieldSupplyNotificationsComponent(
|
|||
Modifier.padding(top = 16.dp)
|
||||
},
|
||||
containerColor = TangemTheme.colors.background.action,
|
||||
iconTint = null,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,4 +6,5 @@ import java.math.BigDecimal
|
|||
data class YieldSupplyNotificationData(
|
||||
val feeValue: BigDecimal?,
|
||||
val feeError: GetFeeError?,
|
||||
val shouldShowHighFeeNotification: Boolean = false,
|
||||
)
|
||||
|
|
@ -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 }) {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
),
|
||||
)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue