From 4098b27ebf60ee810899fad4574c0e99ebbf3f5b Mon Sep 17 00:00:00 2001 From: Tangem Date: Fri, 26 Jan 2024 14:56:35 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../com/tangem/feature/swap/domain/SwapInteractorImpl.kt | 5 +++-- gradle/dependencies.toml | 2 +- 2 files changed, 4 insertions(+), 3 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 4d2d187879..706bc88c68 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 @@ -649,7 +649,8 @@ internal class SwapInteractorImpl @Inject constructor( } Blockchain.Vechain -> Fee.Vechain( amount = feeAmount, - gasPriceCoef = fee.gasLimit, + gasPriceCoef = Fee.Vechain.getGasPriceCoef(fee.gasLimit.toLong(), fee.feeValue), + gasLimit = fee.gasLimit.toLong(), ) Blockchain.Aptos -> { Fee.Aptos( @@ -1345,7 +1346,7 @@ internal class SwapInteractorImpl @Inject constructor( return when (this) { is Fee.Common -> 0 is Fee.Ethereum -> gasLimit.toInt() - is Fee.Vechain -> gasPriceCoef + is Fee.Vechain -> gasLimit.toInt() is Fee.Aptos -> amount.longValue?.div(gasUnitPrice)?.toInt() ?: 0 } } diff --git a/gradle/dependencies.toml b/gradle/dependencies.toml index 9df5c2f6a1..b38c9a9342 100644 --- a/gradle/dependencies.toml +++ b/gradle/dependencies.toml @@ -85,7 +85,7 @@ spr-client = "3.6.2" # endregion Other libraries # region Tangem -tangemBlockchainSdk = "release-app_5.5-464" +tangemBlockchainSdk = "release-app_5.5-465" #tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds tangemCardSdk = "release-app_5.5-323" #tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^