oasis-core
oasis-core copied to clipboard
Account delegations balance
SUMMARY
RPC method staking.Account returns General and Escrow balances. But escrow is a balance delegated to the account and that is very confusing for users. When a user perferoms delegation and than looks at their own balance they see for example General = 0 and Escrow = 0. It would be good the add "Delegations" balance into the Balance struct as a sum of staking.Delegations.
ISSUE TYPE
- Feature Idea
COMPONENT NAME
staking.Account RPC method
ADDITIONAL INFORMATION
The only downside that I see for adding a "delegations" balance is that in case you don't need that information you still pay the cost of looking up delegations. But on the other hand it does save a RPC round-trip.