mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 12:29:31 +00:00
Calculate fee amount from fee rate if available
This commit is contained in:
parent
afd9fe7554
commit
7ffb654065
1 changed files with 4 additions and 2 deletions
|
@ -191,8 +191,10 @@ abstract class ElectrumWalletBase extends WalletBase<ElectrumBalance,
|
||||||
throw BitcoinTransactionNoInputsException();
|
throw BitcoinTransactionNoInputsException();
|
||||||
}
|
}
|
||||||
|
|
||||||
final allAmountFee = feeAmountForPriority(
|
final allAmountFee = transactionCredentials.feeRate != null
|
||||||
transactionCredentials.priority!, inputs.length, outputs.length);
|
? feeAmountWithFeeRate(transactionCredentials.feeRate!, inputs.length, outputs.length)
|
||||||
|
: feeAmountForPriority(transactionCredentials.priority!, inputs.length, outputs.length);
|
||||||
|
|
||||||
final allAmount = allInputsAmount - allAmountFee;
|
final allAmount = allInputsAmount - allAmountFee;
|
||||||
|
|
||||||
var credentialsAmount = 0;
|
var credentialsAmount = 0;
|
||||||
|
|
Loading…
Reference in a new issue