Skip to content

Make tradinglimits account for lightning chan reserve #1945

Closed
@kilrau

Description

@kilrau

EDIT: renamed this issue, new goal below.

LND 0.12 will return inbound balance with the channelbalance call. Since this is considerably more efficient and accurate than our current "iterate through lnd's listchannels" approach, we should move to this call too once lndbtc & lndltc 0.12 are released.

Also I just double checked the following:

  • lnd's channelbalance is simply all local_balance fields of all channels accumulated
  • same way does channelbalance include all remote_balance fields of all channels accumulated with the PR above.

Here is the but: lnd's local_balance and remote_balance subtract the commit_fee, but not the channel reserve chan_reserve_sat which is essentially non-usable balance. Question is: do we want to manually subtract channel reserves from our local and remote balances to give the user a correct picture of what balance is actually usable?

Metadata

Metadata

Assignees

Labels

P3low priorityenhancementNew feature or requestlightningLightning network & lnd integration

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions