From 4e21f84b901d902b234a60159d9146fb3a333794 Mon Sep 17 00:00:00 2001 From: Tangem Date: Tue, 9 Jul 2024 12:57:28 +0100 Subject: [PATCH] Updated on 2026-08-14 --- .../java/com/tangem/feature/swap/domain/SwapInteractorImpl.kt | 4 ++-- .../src/main/java/com/tangem/feature/swap/ui/StateBuilder.kt | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/features/swap/domain/src/main/java/com/tangem/feature/swap/domain/SwapInteractorImpl.kt b/features/swap/domain/src/main/java/com/tangem/feature/swap/domain/SwapInteractorImpl.kt index e5111d0545..25d18c1f45 100644 --- a/features/swap/domain/src/main/java/com/tangem/feature/swap/domain/SwapInteractorImpl.kt +++ b/features/swap/domain/src/main/java/com/tangem/feature/swap/domain/SwapInteractorImpl.kt @@ -1348,7 +1348,7 @@ internal class SwapInteractorImpl @Inject constructor( } catch (e: IllegalStateException) { transactionManager.getFeeForGas( networkId = networkId, - gas = transaction.gas, + gas = transaction.gas.multiply(INCREASE_GAS_LIMIT_BY.toBigInteger()).divide(100.toBigInteger()), derivationPath = fromToken.network.derivationPath.value, ) } @@ -1971,7 +1971,7 @@ internal class SwapInteractorImpl @Inject constructor( gasLimit = 1.toBigInteger(), fee = demoFee.copy(value = normalDemoFee), - ), + ), priorityFee = ProxyFee.Common( gasLimit = 1.toBigInteger(), fee = demoFee.copy(value = priorityDemoFee), diff --git a/features/swap/presentation/src/main/java/com/tangem/feature/swap/ui/StateBuilder.kt b/features/swap/presentation/src/main/java/com/tangem/feature/swap/ui/StateBuilder.kt index 05a1fa9451..e7d4edd818 100644 --- a/features/swap/presentation/src/main/java/com/tangem/feature/swap/ui/StateBuilder.kt +++ b/features/swap/presentation/src/main/java/com/tangem/feature/swap/ui/StateBuilder.kt @@ -1029,8 +1029,7 @@ internal class StateBuilder( val fromFiatAmount = getFormattedFiatAmount(fromCryptoCurrency.value.fiatRate?.multiply(fromAmount)) val toFiatAmount = getFormattedFiatAmount(toCryptoCurrency.value.fiatRate?.multiply(toAmount)) - val shouldShowStatus = providerState.type == ExchangeProviderType.CEX.providerName || - providerState.type == ExchangeProviderType.DEX_BRIDGE.providerName + val shouldShowStatus = providerState.type == ExchangeProviderType.CEX.providerName return uiState.copy( successState = SwapSuccessStateHolder( timestamp = swapTransactionState.timestamp,