mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
Fix estimated fee calculation for customs fee rate (#1406)
* Update output.dart * fix estimated fee calculation * Update bitcoin_transaction_priority.dart
This commit is contained in:
parent
a5a3b4ac0e
commit
7fcf48f91d
5 changed files with 15 additions and 18 deletions
|
@ -126,8 +126,8 @@ abstract class OutputBase with Store {
|
|||
|
||||
if (_wallet.type == WalletType.bitcoin) {
|
||||
if (_settingsStore.priority[_wallet.type] == bitcoin!.getBitcoinTransactionPriorityCustom()) {
|
||||
fee = bitcoin!.getFeeAmountWithFeeRate(
|
||||
_settingsStore.customBitcoinFeeRate, formattedCryptoAmount, 1, 1);
|
||||
fee = bitcoin!.getEstimatedFeeWithFeeRate(_wallet,
|
||||
_settingsStore.customBitcoinFeeRate,formattedCryptoAmount);
|
||||
}
|
||||
|
||||
return bitcoin!.formatterBitcoinAmountToDouble(amount: fee);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue