Cosmos-sdk: Remove mentions of shares from client returns

Created on 6 Feb 2019  路  2Comments  路  Source: cosmos/cosmos-sdk

Legacy API dev-ux proposal

Most helpful comment

Summing up:
Clients should not care about the internal concept of shares.
I as a user only want to know how many tokens I have delegated to a validator so I can quickly evaluate how much value I have delegated.
Same: I as a user want to withdraw x tokens I have delegated to a validator.

Therefor in the CLI and REST interface displaying and withdrawing (and redelegation?!) of stake should only happen in tokens. Those tokens are then converted into and from shares internally.

All 2 comments

Summing up:
Clients should not care about the internal concept of shares.
I as a user only want to know how many tokens I have delegated to a validator so I can quickly evaluate how much value I have delegated.
Same: I as a user want to withdraw x tokens I have delegated to a validator.

Therefor in the CLI and REST interface displaying and withdrawing (and redelegation?!) of stake should only happen in tokens. Those tokens are then converted into and from shares internally.

makes ample sense - some consideration needs to given based truncation which may occur based on values of shares etc.. but I don't think it's anything unmanageable

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hendrikhofstadt picture hendrikhofstadt  路  3Comments

cwgoes picture cwgoes  路  3Comments

fedekunze picture fedekunze  路  3Comments

mossid picture mossid  路  3Comments

rigelrozanski picture rigelrozanski  路  3Comments