Updated on 2026-08-14

This commit is contained in:
Tangem 2024-07-09 12:57:28 +01:00
parent c0471dbf9f
commit 4e21f84b90
2 changed files with 3 additions and 4 deletions

View file

@ -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),

View file

@ -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,