Updated on 2026-08-14
This commit is contained in:
parent
4e533c14ef
commit
d873d6425d
2 changed files with 2 additions and 1 deletions
|
|
@ -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