Updated on 2026-08-14

This commit is contained in:
Tangem 2024-06-18 17:16:28 +01:00
commit 8bfaf73949
2 changed files with 7 additions and 2 deletions

View file

@ -841,9 +841,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

@ -87,7 +87,7 @@ markdown = "0.7.2"
# endregion Other libraries
# region Tangem
tangemBlockchainSdk = "release-app_5.12-678"
tangemBlockchainSdk = "release-app_5.12-680"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "release-app_5.12-364"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^