Updated on 2026-08-14

This commit is contained in:
Tangem 2023-03-09 12:35:17 +03:00
parent 6b95243f9a
commit 9bb0c2ec48
3 changed files with 24 additions and 1 deletions

View file

@ -148,6 +148,7 @@ class TransactionManagerImpl(
amountToSend: BigDecimal,
currencyToSend: Currency,
destinationAddress: String,
increaseBy: Int?,
data: String?,
derivationPath: String?,
): ProxyFee {
@ -161,7 +162,13 @@ class TransactionManagerImpl(
currency = currencyToSend,
destinationAddress = destinationAddress,
data = data,
)
).let {
if (increaseBy != null && increaseBy != 0) {
it.multiply(increaseBy.toBigInteger()).divide(BigInteger("100"))
} else {
it
}
}
return when (val gasPrice = walletManager.getGasPrice()) {
is Result.Success -> {
val fee = gasLimit.multiply(gasPrice.data).toBigDecimal(