From cc4b2e829952748bc06382b8e599642cecba3eff Mon Sep 17 00:00:00 2001 From: Tangem Date: Wed, 31 May 2023 18:22:10 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../tap/proxy/TransactionManagerImpl.kt | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/app/src/main/java/com/tangem/tap/proxy/TransactionManagerImpl.kt b/app/src/main/java/com/tangem/tap/proxy/TransactionManagerImpl.kt index c1a687a860..7c511dbceb 100644 --- a/app/src/main/java/com/tangem/tap/proxy/TransactionManagerImpl.kt +++ b/app/src/main/java/com/tangem/tap/proxy/TransactionManagerImpl.kt @@ -279,33 +279,20 @@ class TransactionManagerImpl( return when (fee) { is Result.Success -> { val choosableFee = fee.data - ProxyFees( - minFee = ProxyFee( - gasLimit = walletManager.gasLimit ?: BigInteger.ZERO, - fee = convertToProxyAmount(choosableFee.minimum), - ), - normalFee = ProxyFee( - gasLimit = BigInteger.ZERO, - fee = convertToProxyAmount(amount = choosableFee.normal), - ), - priorityFee = ProxyFee( - gasLimit = BigInteger.ZERO, - fee = convertToProxyAmount(amount = choosableFee.priority), - ) - ) val minProxyFee = ProxyFee( gasLimit = walletManager.gasLimit ?: BigInteger.ZERO, - fee = convertToProxyAmount(fee.data.minimum), + fee = convertToProxyAmount(amount = choosableFee.minimum), ) val normalProxyFee = ProxyFee( gasLimit = walletManager.gasLimit ?: BigInteger.ZERO, - fee = convertToProxyAmount(fee.data.normal), + fee = convertToProxyAmount(amount = choosableFee.normal), ) val priorityProxyFee = ProxyFee( gasLimit = walletManager.gasLimit ?: BigInteger.ZERO, - fee = convertToProxyAmount(fee.data.priority), + fee = convertToProxyAmount(amount = choosableFee.priority), ) + ProxyFees( minFee = minProxyFee, normalFee = normalProxyFee,