Ride-The-Lightning / RTL-Design

Ride The Lightning - A full function web browser app for LND and C-Lightning.
MIT License
12 stars 4 forks source link

balance score overhaul #51

Open seth586 opened 4 years ago

seth586 commented 4 years ago

Currently, a balance score of, say 1, can mean two things: either all the funds are on my side or on their side. Sorting channels by balance score is not currently useful or informative.

A balance score should illustrate balance in either direction.

A -1 to +1 score would illustrate balance in a specific direction.

-1 = all the balance is on my side

+1 = all the balance in on my peers side

0 = perfectly balanced

lndmanage uses this scoring system and it makes sense.

saubyk commented 4 years ago

Hi @seth586 there is one concern I have on your proposal. With the balance score ranging from -1 to +1, you lose the ability to sort on your grids based on the balancedness of the channels. The current scoring mechanism, makes it easy to sort your most balanced channels easily.