mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
FIX: Lightning balance/fees don't add up (closes #225)
This commit is contained in:
parent
cb5b77e683
commit
3301380e83
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ export class LightningCustodianWallet extends LegacyWallet {
|
|||
|
||||
if (tx.type === 'paid_invoice') {
|
||||
tx.memo = tx.memo || 'Lightning payment';
|
||||
if (tx.value > 0) tx.value = (tx.value * 1 + tx.fee * 1) * -1;
|
||||
if (tx.value > 0) tx.value = tx.value * -1; // value already includes fee in it (see lndhub)
|
||||
// outer code expects spending transactions to of negative value
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue