Wallet Overview - add additional buckets for claims/tips/supports #617

Closed
opened 2017-09-25 19:02:18 +02:00 by tzarebczan · 3 comments
tzarebczan commented 2017-09-25 19:02:18 +02:00 (Migrated from github.com)

The Issue

Currently, a user is only able to see an LBC balance which denotes total available LBC in the wallet. Would be a nice feature to show additional information/breakdowns for tips and locked up LBC via supports. This will also make users more aware of where their LBC is allocated, so there are fewer questions after reviewing their transaction list - they can add up the balances.

Ideas:
Total LBC locked up in claims (channel claims + publish claims)
Total LBC Supporting my claims( breakdown with own supports vs others' supports)
Total LBC Supporting other claims
Total LBC in Tips (include self tips, or include them as supports instead?)

Above is up for discussion/direction.

Expected behaviour

Overview would show balance of locked up tips, own supports, others' supports and total locked up in claims/supports

Actual behaviour

We only have wallet balance at this time

System Configuration

  • LBRY Daemon version:
  • LBRY App version:
  • LBRY Installation ID:
  • Operating system:

Anything Else

Screenshots

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-app/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on Slack at https://slack.lbry.io --> ## The Issue Currently, a user is only able to see an LBC balance which denotes total available LBC in the wallet. Would be a nice feature to show additional information/breakdowns for tips and locked up LBC via supports. This will also make users more aware of where their LBC is allocated, so there are fewer questions after reviewing their transaction list - they can add up the balances. Ideas: Total LBC locked up in claims (channel claims + publish claims) Total LBC Supporting my claims( breakdown with own supports vs others' supports) Total LBC Supporting other claims Total LBC in Tips (include self tips, or include them as supports instead?) Above is up for discussion/direction. ### Expected behaviour Overview would show balance of locked up tips, own supports, others' supports and total locked up in claims/supports ### Actual behaviour We only have wallet balance at this time ## System Configuration <!-- For the app, this info is in the About section at the bottom of the Help page. You can include a screenshot instead of typing it out --> <!-- For the daemon, run: curl 'http://localhost:5279' --data '{"method":"version"}' and include the full output --> - LBRY Daemon version: - LBRY App version: - LBRY Installation ID: - Operating system: ## Anything Else <!-- Include anything else that does not fit into the above sections --> ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here -->
eggplantbren commented 2019-05-09 00:36:24 +02:00 (Migrated from github.com)

I was just going to open an issue for this exact thing. A simple start could be to have something like "LBC in wallet" and "LBC net worth", where the latter includes supports and LBC held against claims. I imagine it would be quite easy to both compute that and display it in the app.

I was just going to open an issue for this exact thing. A simple start could be to have something like "LBC in wallet" and "LBC net worth", where the latter includes supports and LBC held against claims. I imagine it would be quite easy to both compute that and display it in the app.
tzarebczan commented 2019-08-06 18:42:48 +02:00 (Migrated from github.com)

This is now possible with 0.38.7, which has a breaking API change for account balance:

{
"total": "all spendable in my wallet, including claims/supports",
"reserved": "tied up in claims/supports",
"available": "total - reserved",
"reserved_subtotals": {
"claims": "in active claims",
"supports": "in active supports",
"tips": "in active tips"
}
}

Just account balance, which should run just as fast as before (did notice some slowness on Windows with super large wallet, so we may want to refresh every 4 seconds instead of 2 until we get web sockets). This would be run in the background to keep available balance updated. Maybe we can even show reserved total as a hover?

{
  "available": "251.1298971",
  "reserved": "991.471026",
  "reserved_subtotals": null,
  "total": "2493.7308202"
}

with --reserved_subtotals (would be run when on wallet overview page)

{
  "available": "251.1298971",
  "reserved": "991.471026",
  "reserved_subtotals": {
    "claims": "49.471026",
    "supports": "822.0",
    "tips": "120.0"
  },
  "total": "2493.7308202"
}
This is now possible with 0.38.7, which has a breaking API change for account balance: { "total": "all spendable in my wallet, including claims/supports", "reserved": "tied up in claims/supports", "available": "total - reserved", "reserved_subtotals": { "claims": "in active claims", "supports": "in active supports", "tips": "in active tips" } } Just account balance, which should run just as fast as before (did notice some slowness on Windows with super large wallet, so we may want to refresh every 4 seconds instead of 2 until we get web sockets). This would be run in the background to keep available balance updated. Maybe we can even show reserved total as a hover? ``` { "available": "251.1298971", "reserved": "991.471026", "reserved_subtotals": null, "total": "2493.7308202" } ``` with --reserved_subtotals (would be run when on wallet overview page) ``` { "available": "251.1298971", "reserved": "991.471026", "reserved_subtotals": { "claims": "49.471026", "supports": "822.0", "tips": "120.0" }, "total": "2493.7308202" } ```
tzarebczan commented 2019-09-03 19:28:13 +02:00 (Migrated from github.com)

Notes from planning:
The main balance we show should be the Total (does this include claims? Maybe not since we don't want them unlocking it).

Then we would show total available for sending, total locked in claims, total unlockable tips, total locked in supports (should this be with tips)?

There's should be an unlock all button which would abandon any tips/supports (or do these separately?)

When trying to send a value above the available balance, mention that X are locked in tips/supports. with at least an indication on how to unlock.

To consider: running with --reserved_subtotals is a bit slower since there are more queries generated on SDK side, especially on larger wallets. If we want to exclude claims from total, we may want the SDK to give another summary value for "total_unlockable".

Notes from planning: The main balance we show should be the Total (does this include claims? Maybe not since we don't want them unlocking it). Then we would show total available for sending, total locked in claims, total unlockable tips, total locked in supports (should this be with tips)? There's should be an unlock all button which would abandon any tips/supports (or do these separately?) When trying to send a value above the available balance, mention that X are locked in tips/supports. with at least an indication on how to unlock. To consider: running with --reserved_subtotals is a bit slower since there are more queries generated on SDK side, especially on larger wallets. If we want to exclude claims from total, we may want the SDK to give another summary value for "total_unlockable".
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#617
No description provided.