oasis-core icon indicating copy to clipboard operation
oasis-core copied to clipboard

Account delegations balance

Open Messer4 opened this issue 4 years ago • 1 comments

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

Messer4 avatar Dec 01 '20 16:12 Messer4

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.

kostko avatar Dec 03 '20 10:12 kostko