diff --git a/features/swap/impl/src/main/java/com/tangem/feature/swap/model/SwapNotificationsFactory.kt b/features/swap/impl/src/main/java/com/tangem/feature/swap/model/SwapNotificationsFactory.kt index 6c93ec7d9b..58486a978a 100644 --- a/features/swap/impl/src/main/java/com/tangem/feature/swap/model/SwapNotificationsFactory.kt +++ b/features/swap/impl/src/main/java/com/tangem/feature/swap/model/SwapNotificationsFactory.kt @@ -218,12 +218,12 @@ internal class SwapNotificationsFactory( if (status is CryptoCurrencyStatus.NoAccount) { val amount = quoteModel.toTokenInfo.tokenAmount.value val amountToCreateAccount = status.amountToCreateAccount - val currencyTo = quoteModel.fromTokenInfo.cryptoCurrencyStatus.currency + val currencyTo = quoteModel.toTokenInfo.cryptoCurrencyStatus.currency if (amount < amountToCreateAccount) { add( SwapNotificationUM.Warning.NeedReserveToCreateAccount( - status.amountToCreateAccount.parseBigDecimal(currencyTo.decimals), - currencyTo.symbol, + receiveAmount = status.amountToCreateAccount.parseBigDecimal(currencyTo.decimals), + receiveToken = currencyTo.symbol, ), ) } diff --git a/features/swap/impl/src/main/java/com/tangem/feature/swap/models/states/SwapNotificationUM.kt b/features/swap/impl/src/main/java/com/tangem/feature/swap/models/states/SwapNotificationUM.kt index bf1bfae85a..b6fb06af62 100644 --- a/features/swap/impl/src/main/java/com/tangem/feature/swap/models/states/SwapNotificationUM.kt +++ b/features/swap/impl/src/main/java/com/tangem/feature/swap/models/states/SwapNotificationUM.kt @@ -127,12 +127,12 @@ internal object SwapNotificationUM { ) data class NeedReserveToCreateAccount( - val amount: String, - val token: String, + val receiveAmount: String, + val receiveToken: String, ) : Warning( title = resourceReference( - id = R.string.send_notification_invalid_reserve_amount_title, - formatArgs = wrappedList("$amount $token"), + id = R.string.warning_express_notification_invalid_reserve_amount_title, + formatArgs = wrappedList("$receiveAmount $receiveToken"), ), subtitle = resourceReference(R.string.send_notification_invalid_reserve_amount_text), )