Updated on 2026-08-14
This commit is contained in:
parent
4e533c14ef
commit
d873d6425d
2 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
|||
# https://github.com/tangem/tangem-sdk-android/
|
||||
# https://github.com/tangem/vico
|
||||
|
||||
tangemBlockchainSdk = "releases-5.38-1543"
|
||||
tangemBlockchainSdk = "releases-5.38-1547"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "releases-5.38-615"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ object BlockchainFeeUtils {
|
|||
private fun Fee.increaseGasLimitBy(percentage: Int): Fee {
|
||||
if (this !is Fee.Ethereum) return this
|
||||
val gasLimit = this.gasLimit
|
||||
if (gasLimit == BigInteger.ZERO) return this
|
||||
val increasedGasPrice = this.amount.value?.movePointRight(this.amount.decimals)
|
||||
?.divide(gasLimit.toBigDecimal(), RoundingMode.HALF_UP)
|
||||
val increasedGasLimit = gasLimit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue