-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DelegatorShares vs Tokens in staking/Validator struct #3771
Comments
@MattWangming indeed these terms, tokens and shares, can cause confusion in the same context -- they did for me.
Correct.
I don't think this is true. If we look at So to understand these terms, I quote @cwgoes here:
Does this help clear things up? Or do you feel there is a bug somewhere or something could be improved upon? |
Related: #3516 |
@alexanderbez @jackzampolin |
@MattWangming it seems you want the self-delegation to be a separate field/structure that's part of the validator. What is the main motivation here? It's not really treated different than any other delegation. |
@alexanderbez Yes, that is what we desired. We are focusing one digital wallet DAPP based on cosmos SDK. From the perspect of delegators, they want to select the validators to staking based on some standards, e.g. the self delegation shares and delegation from others. So it coule be perfect if there is a seperate field on this information. |
I don't think that would be conducive to code clarity, but it's easy to fetch the self-delegation - just find the delegation from the validator's address to itself. |
@alexanderbez @cwgoes OK, thanks for your clarification anyway. |
Summary of Bug
Right now there are 2 fields defined for the staking tokens in the validator struct, DelegatorShares and Tokens. But from the comments of the sepcification ,
I think the Tokens sums all the staking including self-delegation as well as stakes delegated by other delegators.
But the DelegatorShares should represent the delegation shares from all the delegators exclude self delegation.
I
m not sure if I
m right on this part, by if they are the same value except of Decimal and Integer. I think this would make no sense.Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: