-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix claim_rewards_to benchmark to enable Snowbridge reward claims
#10952
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
base: master
Are you sure you want to change the base?
Fix claim_rewards_to benchmark to enable Snowbridge reward claims
#10952
Conversation
| // Measured: `0` | ||
| // Measured: `297` | ||
| // Estimated: `0` | ||
| // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
claim_rewards_to is effectively disabled.
|
Polkadot runtimes PR here: sigurpol/runtimes#2 |
| Self::deposit_account(rewards_account.clone(), reward); | ||
|
|
||
| None | ||
| Some(bridge_common_config::BridgeRewardBeneficiaries::LocalAccount( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what configuration does it makes sense that this function return None? :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not completely sure. My guess is this what stub code and had to be updated once claim_rewards_to was implemented, and I missed it.
@bkontur may you confirm, just want to make sure I'm not affecting anything on the P<>K bridge relayers side.
The
prepare_rewards_accountbenchmark helper was returningNone, causingclaim_rewards_toto be assignedWeight::MAXand effectively disabling the extrinsic. This fix returns a valid beneficiary account, enabling Snowbridge relayers to claim rewards to AssetHub as intended.