-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Pools] Ensure members can always exit the pool gracefully #4998
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
59431aa
release only amount that is available
Ank4n d1ff964
in some cases pool contribution can be greater than actual balance lo…
Ank4n 524014a
fix imports
Ank4n 3c606f9
fmt
Ank4n db4bf5b
Revert "fix imports"
Ank4n ab9f38e
Merge branch 'master' into ankan/delegation-release-best-effort
Ank4n 05d5f38
wip: test failing
Ank4n 5381a18
add api to kill agent
Ank4n 54d0ec4
fix test
Ank4n 8ea4180
balance assertions
Ank4n c132431
remove commented code
Ank4n 9b0e63a
clear dangling delegation when member is removed
Ank4n af89aaa
Merge branch 'master' into ankan/delegation-release-best-effort
Ank4n 7c0f8e4
comments
Ank4n fddfbd4
add prdoc
Ank4n 6d2038d
Merge branch 'master' into ankan/delegation-release-best-effort
Ank4n 0ca3bcd
Merge branch 'master' into ankan/delegation-release-best-effort
Ank4n 583afd2
Merge branch 'master' into ankan/delegation-release-best-effort
Ank4n 080b6fa
refactor
Ank4n e4cf514
Merge branch 'master' into ankan/delegation-release-best-effort
Ank4n 2d73e13
Merge branch 'master' into ankan/delegation-release-best-effort
Ank4n 81827aa
Merge branch 'master' into ankan/delegation-release-best-effort
Ank4n 9099c25
fail if can't reduce provider while killing pool
Ank4n ccc45c3
Update substrate/frame/nomination-pools/src/lib.rs
Ank4n 00de4e1
Merge branch 'master' into ankan/delegation-release-best-effort
Ank4n a1a3f08
".git/.scripts/commands/fmt/fmt.sh"
3db8c34
Merge branch 'master' into ankan/delegation-release-best-effort
Ank4n 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 hidden or 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,20 @@ | ||
| # Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
| # See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
|
||
| title: Ensure members can always exit the pool gracefully | ||
|
|
||
| doc: | ||
| - audience: Runtime Dev | ||
| description: | | ||
| Ensures when a member wants to withdraw all funds but the pool is not able to provide all their funds, the member | ||
| can receive as much as possible and exit pool. Also handles cases where some extra funds held in member's account | ||
| is released when they are removed. | ||
|
|
||
| crates: | ||
| - name: pallet-delegated-staking | ||
| bump: patch | ||
| - name: pallet-nomination-pools | ||
| bump: major | ||
| - name: sp-staking | ||
| bump: major | ||
|
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.