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

Rewards beneficiary #7609

Open
wants to merge 1 commit into
base: bko-rewards
Choose a base branch
from
Open

Rewards beneficiary #7609

wants to merge 1 commit into from

Conversation

bkontur
Copy link
Contributor

@bkontur bkontur commented Feb 18, 2025

No description provided.

@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/13393484275
Failed job name: fmt

Copy link
Contributor

@serban300 serban300 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just left a comment. Otherwise LGTM

reward_kind: RewardsAccountParams<LaneId>,
reward: RewardBalance,
alternative_beneficiary: Option<Self::AlternativeBeneficiary>,
beneficiary: Either<Relayer, Self::AlternativeBeneficiary>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if Either is needed anymore. We can just do beneficiary: Self::AlternativeBeneficiary. I think it would cover all the use cases that we have, right ?

Also I would rename AlternativeBeneficiary to Beneficiary

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@serban300 or feel free to update this PR directly :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry, I see the problem. I have to experiment a bit.

Apart from that #7492 looks good. I'll approve as soon as we sort this out.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right, I think I got it, I will do type Beneficiary and at the end it will be just enum(AccountId, VersionedLocation), and we dont need neither Either nor Option

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

Successfully merging this pull request may close these issues.

2 participants