blixt-wallet icon indicating copy to clipboard operation
blixt-wallet copied to clipboard

Channel details - wrong info calculations

Open Darth-Coin opened this issue 2 years ago • 3 comments

Problem

In Channel details screen, the numbers are not displayed correctly and can confuse the user, in special a new user to LN.

Description

After doing several tests in #1065 with Kevin we've found out that the numbers displayed are not representing correctly each section:

  • Channel capacity - CC
  • Can send - CS
  • Can receive - CR
  • Local reserve - LR
  • Commitment fee - CF
  • (Missing) anchor output - AO

The formula should be: CC = CS + CR + LR + CF + (AOx2) Actual example here: image

210 000 = 164.178 + 36.208 + 2.100 + 6.854 + 660

Right now, "Can receive" include also the amount of "local reserve" and should NOT. Can confuse a new user. Also the top balance displayed, it include the "local reserve" and this could be confusing for the user. Local reserve cannot be used in regular LN payments.

Solution proposal

It should display all the sections in a very transparent and clear calculation, so the user can understand what is going on and where are his sats.

  • Top balance should display ONLY the total amount of sats from all channels, that can be send.
  • (optional if possible) A nice thing could be added in smaller font the total amount from all channels "can receive".
  • "can receive" should not include "local reserve"
  • add section "anchor output" that is not included at all now.

Darth-Coin avatar Nov 20 '22 20:11 Darth-Coin

Still something doesn't add up Look at this channel status

image

I opened that chan, sent a bunch of payments, in total of around 8k sats. Strangely the "can receive" is not updated with the 8k sats (or at least close to).

We need to find a way to show correctly these amounts "can send" and "can receive" so the user can know anytime exactly how much can send or receive. Is really confusing for many noobs and really hard to explain them this issue.

Darth-Coin avatar Jan 27 '23 08:01 Darth-Coin

@Darth-Coin I think one of the issues is that we still have channel reserve #812 in Blixt. Removing it requires changes to lnd. It will accumulate to the currently required reserve 1%.

Also commitment fee negotiation can fluctuate, which is a tricky one to solve.

hsjoberg avatar Jan 28 '23 00:01 hsjoberg

I would like to see something like this in the channels list section. Something like Thunderhub is displaying for a node. User will have a better report about his node liquidity and understand where his sats are. many noobs are freaked out when they see that their deposit of 100k sats is actually only less than 90k usable. On the main screen still can be displayed just the total available balance, without any other details. image

Darth-Coin avatar Apr 10 '23 09:04 Darth-Coin