From 9531146e8f81ac498fc668cef76ffb3ea184f5bd Mon Sep 17 00:00:00 2001 From: Tangem Date: Thu, 20 Feb 2025 19:43:26 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../com/tangem/feature/swap/model/SwapNotificationsFactory.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 249fdce71d..6c93ec7d9b 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 @@ -164,7 +164,8 @@ internal class SwapNotificationsFactory( cryptoCurrencyStatus = fromCurrencyStatus, onReduceClick = { reduceBy, reduceByDiff, _ -> actions.onReduceByAmount( - amount.copy(value = amount.value.minus(reduceByDiff)), + // use in swap notification amountToRequest because fee is already subtracted + amountToRequest.copy(value = amountToRequest.value.minus(reduceByDiff)), reduceBy, ) },