-
Notifications
You must be signed in to change notification settings - Fork 732
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
Pools: Make PermissionlessWithdraw
the default claim permission
#3438
Merged
Merged
Changes from 47 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
ac22eaf
add v9 migration
a3c99b2
Revert "add v9 migration"
aef4328
v9 migration
ee7d671
use OldClaimPermission
2022bb6
make `PermissionlessWithdraw` default
d767c17
don't store default
5bc0356
fix typo
36c6c97
fix comment
cf38a3f
add migration
c305dda
add prdoc
4077e3f
amend post_upgrade
af6a347
fix
d08910f
Merge branch 'master' into rb-claim-permission-default-change
ab4e5a3
Merge branch 'master' into rb-claim-permission-default-change
a8d72d4
action feedback
2e32747
bump storage version
b51c28d
amend post_upgrade
425e725
post_upgrade checks count
32c8ed3
u64
0c89e34
cast
d1d9119
Merge branch 'master' into rb-claim-permission-default-change
bdfe4ea
Merge branch 'master' into rb-claim-permission-default-change
43de3cc
Merge branch 'master' into rb-claim-permission-default-change
f5a75b1
audence update
a001fe7
Merge branch 'rb-claim-permission-default-change' of https://github.c…
b0afaa4
Merge branch 'master' into rb-claim-permission-default-change
b80571b
Merge branch 'master' into rb-claim-permission-default-change
8c6a654
Merge branch 'master' into rb-claim-permission-default-change
8bf1c2a
Merge branch 'master' into rb-claim-permission-default-change
b50b31a
Merge branch 'master' into rb-claim-permission-default-change
62d8979
Merge branch 'master' into rb-claim-permission-default-change
350c009
Merge branch 'master' into rb-claim-permission-default-change
0b6f0ad
Merge branch 'master' into rb-claim-permission-default-change
5493232
Merge branch 'master' into rb-claim-permission-default-change
387e9bd
Merge branch 'master' into rb-claim-permission-default-change
69d35b9
Merge branch 'master' into rb-claim-permission-default-change
56a24b9
Merge branch 'master' into rb-claim-permission-default-change
34d4807
remove migration
7c7cc7a
Merge branch 'rb-claim-permission-default-change' of https://github.c…
c354aca
Merge branch 'master' into rb-claim-permission-default-change
e0891a0
roll back storage version
65db056
Merge branch 'rb-claim-permission-default-change' of https://github.c…
e39539a
rm
682b334
fmt
8d6871d
Merge branch 'master' into rb-claim-permission-default-change
d800fcc
amend prdoc
767e539
Merge branch 'rb-claim-permission-default-change' of https://github.c…
2d1eec6
Merge branch 'master' into rb-claim-permission-default-change
35505c6
bring back PermissionlessAll
892e7ca
add comment
6c77e10
Merge branch 'master' into rb-claim-permission-default-change
83caea6
Merge branch 'master' into rb-claim-permission-default-change
a8041d1
Merge branch 'master' into rb-claim-permission-default-change
e10332a
Merge branch 'master' into rb-claim-permission-default-change
05e124f
Merge branch 'master' into rb-claim-permission-default-change
04b2d50
Merge branch 'master' into rb-claim-permission-default-change
31ad8a4
Merge branch 'master' into rb-claim-permission-default-change
80499a6
add bump
95ae56f
Merge branch 'rb-claim-permission-default-change' of https://github.c…
abe04ca
prdoc
0b1d09e
fix
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
title: "Pools: Make PermissionlessWithdraw the default claim permission" | ||
|
||
doc: | ||
- audience: Runtime User | ||
description: | | ||
Makes permissionless withdrawing the default claim permission, giving any network participant | ||
access to claim pool rewards on member's behalf, by default. | ||
|
||
crates: | ||
- name: pallet-nomination-pools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Since it is not an obvious default, my opinion would be to remove the default impl and explicitly use the variant where needed.
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'm not sure I understand the ambiguity - the code is explicitly stating this is the default value so I think it looks quite obvious to the keen pallet observer. I think coming from nominators also it is intuitively the same behaviour, e.g. anyone can trigger a validator payout in the same manner as anyone can claim an unclaimed reward in this case.
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.
IMO obvious defaults are like
false
,zero
but anything else should ideally not have defaults. Since its a value query it will default to this value if the key is missing and I generally think its better to be explicit as much as we can.Though its just my opinion and if you disagree and no one else objects, I am fine with this.