Updated on 2026-08-14

This commit is contained in:
Tangem 2024-06-11 12:37:54 +01:00
parent bf5e1fa837
commit 7ac7fed538
2 changed files with 7 additions and 2 deletions

View file

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

View file

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