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,12 +438,14 @@ mixin PaynymWalletInterface {
feeRatePerKB: selectedTxFeeRate, feeRatePerKB: selectedTxFeeRate,
); );
if (_coin == Coin.dogecoin || _coin == Coin.dogecoinTestNet) {
if (feeForNoChange < vSizeForNoChange * 1000) { if (feeForNoChange < vSizeForNoChange * 1000) {
feeForNoChange = vSizeForNoChange * 1000; feeForNoChange = vSizeForNoChange * 1000;
} }
if (feeForWithChange < vSizeForWithChange * 1000) { if (feeForWithChange < vSizeForWithChange * 1000) {
feeForWithChange = vSizeForWithChange * 1000; feeForWithChange = vSizeForWithChange * 1000;
} }
}
if (satoshisBeingUsed - amountToSend > feeForNoChange + _dustLimitP2PKH) { if (satoshisBeingUsed - amountToSend > feeForNoChange + _dustLimitP2PKH) {
// try to add change output due to "left over" amount being greater than // try to add change output due to "left over" amount being greater than