Skip to content
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

Withdraw commission even there is no delegation rewards #559

Closed
kwunyeung opened this issue Jan 11, 2022 · 11 comments
Closed

Withdraw commission even there is no delegation rewards #559

kwunyeung opened this issue Jan 11, 2022 · 11 comments
Assignees
Labels
size/S Low workload

Comments

@kwunyeung
Copy link
Member

kwunyeung commented Jan 11, 2022

For a particular case, if the validator is setting 100% commission, the account has 0 reward but only commission, Withdraw Rewards would not allow it to continue as it only check if there is delegation rewards.

image

X should allow validator account to withdraw commission even there is no delegation rewards.

@kanniec826 kanniec826 added the size/S Low workload label Jan 24, 2022
@kwunyeung
Copy link
Member Author

Got these errors when withdrawing commission from Ledger on staging.

image

@calvinkei
Copy link
Contributor

@kwunyeung when did it happen? is it after the extension popup? did the extension UI show anything or crash immediately?

@kwunyeung
Copy link
Member Author

@calvinkei after the extension popped up. The errors are from the extension.

@calvinkei
Copy link
Contributor

@kwunyeung can i have your validator address?

@kwunyeung
Copy link
Member Author

desmosvaloper17lca9smrdlwkznr92hypzrgsjkelnxeaacgrwq

@calvinkei
Copy link
Contributor

@kwunyeung fixed in v0.18.1 staging

@kwunyeung
Copy link
Member Author

The commission withdrawal is broadcasting a wrong message. It's now the same as withdraw rewards which is /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward. The correct message should be /cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission. The message is as simple as

 {
        "@type": "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",
        "validator_address": "desmosvaloper17lca9smrdlwkznr92hypzrgsjkelnxeaacgrwq"
 }

We can sign the both messages for a validator and it will withdraw both rewards and commission from the validator.

@calvinkei
Copy link
Contributor

calvinkei commented Feb 10, 2022

@kwunyeung fixed and deployed on staging v0.18.2

but now it will withdraw rewards on the rewards tab, and withdraw commissions on the commissions tab. do you mean you want to broadcast both messages at the same time, no matter which tab they are at?

@kwunyeung
Copy link
Member Author

@calvinkei Yes I would like to withdraw both in a single transaction for validators. Should we make it not in two tabs but show "Rewawrds and Commission" if the account is a validator? We can close this issue first and handle it in another issue if that make sense.

@calvinkei
Copy link
Contributor

@kwunyeung this involves changes in UI. should we release it in this version and improve the UI later?

@kwunyeung
Copy link
Member Author

All working good in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Low workload
Projects
None yet
Development

No branches or pull requests

3 participants