Updated on 2026-08-14

This commit is contained in:
Tangem 2024-01-26 14:56:35 +05:00
parent 4415bd1482
commit 4098b27ebf
2 changed files with 4 additions and 3 deletions

View file

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

View file

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