Skip to content

Commit

Permalink
fix(lnd): total and spendable balance (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya authored Jul 20, 2024
1 parent d8ba374 commit b5f8732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lnclient/lnd/lnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,8 @@ func (svc *LNDService) GetOnchainBalance(ctx context.Context) (*lnclient.Onchain
"balances": balances,
}).Debug("Listed Balances")
return &lnclient.OnchainBalanceResponse{
Spendable: int64(balances.ConfirmedBalance - balances.ReservedBalanceAnchorChan),
Total: int64(balances.TotalBalance - balances.ReservedBalanceAnchorChan),
Spendable: int64(balances.ConfirmedBalance),
Total: int64(balances.TotalBalance),
Reserved: int64(balances.ReservedBalanceAnchorChan),
}, nil
}
Expand Down

0 comments on commit b5f8732

Please sign in to comment.