Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 157c5ec

Browse files
valentinewallacetanx
authored andcommitted
Update toggleMax to estimate fee more conservatively.
1 parent 64bdfed commit 157c5ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/action/payment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class PaymentAction {
136136
if (payment.sendAll) {
137137
return this.setAmount({ amount: '0' });
138138
}
139-
let amtSat = Math.floor(0.98 * balanceSatoshis);
139+
let amtSat = Math.floor(0.8 * balanceSatoshis);
140140
payment.amount = toAmount(amtSat, settings);
141141
await this.estimateFee();
142142
amtSat = balanceSatoshis - toSatoshis(payment.fee, settings);

0 commit comments

Comments
 (0)