Updated on 2026-08-14
This commit is contained in:
commit
4ffe7e8c07
3 changed files with 19 additions and 16 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