Updated on 2026-08-14
This commit is contained in:
parent
abbfa57a2f
commit
e4294789b2
3 changed files with 24 additions and 2 deletions
|
|
@ -373,5 +373,15 @@ sealed class NotificationUM(val config: NotificationConfig) {
|
|||
formatArgs = wrappedList(rentInfo.exemptionAmount),
|
||||
),
|
||||
)
|
||||
|
||||
data class RentExemptionDestination(
|
||||
private val rentExemptionAmount: BigDecimal,
|
||||
) : Error(
|
||||
title = TextReference.Res(R.string.send_notification_invalid_amount_title),
|
||||
subtitle = TextReference.Res(
|
||||
id = R.string.send_notification_invalid_amount_rent_destination,
|
||||
formatArgs = wrappedList(rentExemptionAmount),
|
||||
),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -354,7 +354,11 @@ object NotificationsFactory {
|
|||
onReduceClick = onReduceClick,
|
||||
)
|
||||
is BlockchainSdkError.DestinationTagRequired -> addRequireDestinationTagErrorNotification()
|
||||
null -> minAdaValue?.let {
|
||||
is BlockchainSdkError.Solana.DestinationRentExemption -> addRentExemptionDestinationNotification(
|
||||
rentExemptionAmount = validationError.rentAmount,
|
||||
)
|
||||
null,
|
||||
-> minAdaValue?.let {
|
||||
add(
|
||||
NotificationUM.Cardano.MinAdaValueCharged(
|
||||
tokenName = cryptoCurrency.name,
|
||||
|
|
@ -439,6 +443,14 @@ object NotificationsFactory {
|
|||
add(NotificationUM.Solana.RentInfo(rentWarning))
|
||||
}
|
||||
|
||||
fun MutableList<NotificationUM>.addRentExemptionDestinationNotification(rentExemptionAmount: BigDecimal) {
|
||||
add(
|
||||
NotificationUM.Solana.RentExemptionDestination(
|
||||
rentExemptionAmount = rentExemptionAmount,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
fun MutableList<NotificationUM>.addHighFeeWarningNotification(
|
||||
enteredAmountValue: BigDecimal,
|
||||
cryptoCurrencyStatus: CryptoCurrencyStatus,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
# https://github.com/tangem/tangem-sdk-android/
|
||||
# https://github.com/tangem/vico
|
||||
|
||||
tangemBlockchainSdk = "develop-1129"
|
||||
tangemBlockchainSdk = "develop-1133"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "develop-509"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue