fix notifTx fee calculate bug

This commit is contained in:
julian 2023-01-31 10:03:16 -06:00
parent 69934fb871
commit 3940c88e44

View file

@ -438,11 +438,13 @@ mixin PaynymWalletInterface {
feeRatePerKB: selectedTxFeeRate, feeRatePerKB: selectedTxFeeRate,
); );
if (feeForNoChange < vSizeForNoChange * 1000) { if (_coin == Coin.dogecoin || _coin == Coin.dogecoinTestNet) {
feeForNoChange = vSizeForNoChange * 1000; if (feeForNoChange < vSizeForNoChange * 1000) {
} feeForNoChange = vSizeForNoChange * 1000;
if (feeForWithChange < vSizeForWithChange * 1000) { }
feeForWithChange = vSizeForWithChange * 1000; if (feeForWithChange < vSizeForWithChange * 1000) {
feeForWithChange = vSizeForWithChange * 1000;
}
} }
if (satoshisBeingUsed - amountToSend > feeForNoChange + _dustLimitP2PKH) { if (satoshisBeingUsed - amountToSend > feeForNoChange + _dustLimitP2PKH) {