Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-03 19:34:07 +05:00
parent 4e533c14ef
commit d873d6425d
2 changed files with 2 additions and 1 deletions

View file

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