From 7ac7fed538c985a706a2693e60ff2c1a3fefa49c Mon Sep 17 00:00:00 2001 From: Tangem Date: Tue, 11 Jun 2024 12:37:54 +0100 Subject: [PATCH] Updated on 2026-08-14 --- .../com/tangem/feature/swap/domain/SwapInteractorImpl.kt | 7 ++++++- gradle/dependencies.toml | 2 +- 2 files changed, 7 insertions(+), 2 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 0b77da443d..31834e873f 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 @@ -697,9 +697,14 @@ internal class SwapInteractorImpl @Inject constructor( gasLimit = fee.gasLimit.toLong(), ) blockchain == Blockchain.Aptos -> { + val gasUnitPrice = fee.feeValue.divide( + BigDecimal(fee.gasLimit), + Blockchain.Aptos.decimals(), + RoundingMode.HALF_UP, + ) Fee.Aptos( amount = feeAmount, - gasUnitPrice = fee.feeValue.divide(BigDecimal(fee.gasLimit)) + gasUnitPrice = gasUnitPrice .movePointRight(Blockchain.Aptos.decimals()) .toLong(), gasLimit = fee.gasLimit.toLong(), diff --git a/gradle/dependencies.toml b/gradle/dependencies.toml index ba65bfa15c..cf62b2f031 100644 --- a/gradle/dependencies.toml +++ b/gradle/dependencies.toml @@ -86,7 +86,7 @@ markdown = "0.7.2" # endregion Other libraries # region Tangem -tangemBlockchainSdk = "release-app_5.11-666" +tangemBlockchainSdk = "release-app_5.11-669" #tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds tangemCardSdk = "release-app_5.11-365" #tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^