Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-03 12:56:36 +03:00
parent e7f862423d
commit 4cfea7fd9a
9 changed files with 67 additions and 1 deletions

View file

@ -41,6 +41,7 @@ fun Fee.increaseGasLimitBy(percent: BigInteger): Fee {
value = increasedGasLimit.toBigDecimal().multiply(increasedGasPrice).movePointLeft(this.amount.decimals),
)
return when (this) {
is Fee.Ethereum.TokenCurrency -> error("handle in [REDACTED_TASK_KEY]")
is Fee.Ethereum.EIP1559 -> copy(amount = increasedAmount, gasLimit = increasedGasLimit)
is Fee.Ethereum.Legacy -> copy(amount = increasedAmount, gasLimit = increasedGasLimit)
}