PolymeshAssociation / polymesh-wallet

A Wallet for Polymesh blockchain
Apache License 2.0
13 stars 6 forks source link

[Feature Request]: Provide unlocking timelines in the wallet for locked POLYX #197

Open TrevorBenson opened 3 years ago

TrevorBenson commented 3 years ago

Currently the wallet shows an amount of locked POLYX. There is no details available inside the wallet or the dashboards which explain how much was locked, in which transaction it was locked and the expected duration (end) of the lock so the funds are again available. These details could either be provided inside the wallet or the dashboard.

F-OBrien commented 3 years ago

The dashboard give you most of this information. With the exception of unbonded tokens there is no definitive timeline for unlocking tokens. Tokens bonded to PIP are locked until the PIP is closed by the governance council. Tokens locked due to staking are locked until the user unbonds and withdraws them.

I do agree that the unbond duration information should conveniently be displayed somewhere, but I'm not sure it needs to be in the wallet (not saying it can't be). Staking related balances and unbond status should primarily be clear on staking related interfaces. I'd also like if the dashboard could give more granular information about why certain chunks of tokens are locked. However in general the user should know why they locked/bonded tokens and can view their transaction history to see more details.

FYI - if you go to https://itn-app.polymesh.live/#/staking/actions you get a bit more information on when your POLYX will be available to unbond by hovering over the clock symbol. image Something like this for the dashboard would be a good addition.

Not specifically related to your feature request... but I am not a fan of how the current wallet release displays balances and feel that should be addressed before considering expanding the wallet to include staking related balances. image As seen in this screenshot it shows my primary key with 77,283.399 POLYX however my primary key actually contains 110,815.884 POLYX. What the wallet is displaying is the Available balance and not the Total balance. 33,532.483 POLYX of my Total balance is locked so I need to add the Available and Locked to know my Total. I'd prefer if balances next to Keys were Total balance and once selected the Total, Available and Locked balances were displayed in the upper area. I'm less interested in the wallet displaying the breakdown of reasons tokens are locked (e.g. staked, pending unbond, awaiting unlock, bonded to PIPs etc.) once that information is available on the overview/staking dashboards. Granular balance chunks get a bit more complex particularly as there is an overlap tokens locked for staking and bonded to PIPs.