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

[pallet-staking] Auto payout validator reward #5894

Open
Ank4n opened this issue Oct 1, 2024 · 1 comment
Open

[pallet-staking] Auto payout validator reward #5894

Ank4n opened this issue Oct 1, 2024 · 1 comment
Assignees
Labels
T2-pallets This PR/Issue is related to a particular pallet.

Comments

@Ank4n
Copy link
Contributor

Ank4n commented Oct 1, 2024

Context

Validator payouts are lazy, and paged. Meaning for each era, and page of nominators (see MaxExposurePageSize), the reward needs to be claimed by calling Staking::payout_stakers.

Validators generally run a bot to claim these. They have HistoryDepth eras (84 eras in dotsama) after which these claims are dropped/become unavailable.

To Do

Utilize tasks to payout rewards.

Probably the best place to schedule this is when a new era is triggered and we set the exposure for the validators.

Other requirements

The tasks should also keep track of pages. This can be as easy as, not remove validator from task until all pages of validator has been paid out.

We also need to have a way to make sure we don't just keep backfilling tasks while not having enough time to process them. I would suggest something like dropping tasks more than X=3 eras (where X is configurable) old.

Related

#4630 is very similar to this issue.

@Ank4n Ank4n added the T2-pallets This PR/Issue is related to a particular pallet. label Oct 1, 2024
@PieWol
Copy link
Contributor

PieWol commented Oct 2, 2024

Hey @Ank4n ,
I'd like to give this a shot. Feel free to assign me :)

@Ank4n Ank4n assigned Ank4n and PieWol and unassigned Ank4n Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T2-pallets This PR/Issue is related to a particular pallet.
Projects
Status: 📕 Backlog
Development

No branches or pull requests

2 participants