-
Notifications
You must be signed in to change notification settings - Fork 707
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] Fix issues with member migration to DelegateStake
#4822
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
11a0c44
migration test
Ank4n efd3324
fmt
Ank4n 3f8d2fc
undo pool changes
Ank4n 7388573
fixes all NotEnoughFunds error
Ank4n 6634d25
return false if pool does not exist
Ank4n a3901a9
fix transfer on hold amount should still be held in dst acc
Ank4n 462be1f
fmt
Ank4n c7e9f6c
unexpected errors check
Ank4n 9a68720
all non staking accounts succeed when given minimum balance
Ank4n 268d0a5
assert migrate tests
Ank4n 000762f
remove clone
Ank4n a904fc8
uncomment
Ank4n 0c776b8
incrementing provider fixes users migrating with zero balance
Ank4n 699a2ec
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n c3fa887
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n 3d2379e
test for clean up accounts
Ank4n ec9035c
providers are incremented correctly when migration agent/delegators
Ank4n a9d4595
migrated agents/delegators are also cleaned up correctly
Ank4n 8a27ae0
improve remote tests
Ank4n 8f77ac4
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n 7fd484a
add runtime api for total member balance
Ank4n 9925a9f
ensure member can't bond extra if they are in unmigrated state
Ank4n 4a9f35f
gate all calls if non migrated state as defensive measure
Ank4n bc3ce11
ensure all calls are gated
Ank4n 5b91644
add runtime api for pool balance
Ank4n 6ceb1ba
remove unused imports
Ank4n de48083
fix import
Ank4n fd8a451
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n ab2317b
fix test
Ank4n cfdaf90
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n d5634c4
add prdoc
Ank4n 0da9807
fix prdoc bump
Ank4n 00f7e6f
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n 1514c2b
add missing crate to prdoc
Ank4n 3dee9c4
remove unintended file
Ank4n 8c96add
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n 2440303
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n 95bf173
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n c6eafa5
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n c209d9e
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n cbfbf6f
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n acbb674
refactor based on pr comments
Ank4n 65cecb5
allow migration lower than ED
Ank4n 4081f12
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n 8cdde30
move remote tests to another file
Ank4n 99698d6
fix below ed test
Ank4n 5e465f2
revert comment
Ank4n c38f83c
ensure there is atleast ED to transfer
Ank4n b3a3263
fix imports
Ank4n dfcdc42
Update substrate/frame/delegated-staking/src/lib.rs
Ank4n 5082542
Merge branch 'master' into ankan/delegate-stake-remote-tests
Ank4n bce9803
refactor inc dec of providers
Ank4n ae9a370
gate extrinsics on top level function
Ank4n 251ba4c
fix clippy
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# 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 as many as possible pool members can migrate to `DelegateStake` | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
1. Allows pool members to use their total balance while joining pool with `DelegateStake`. | ||
2. Gates call mutating pool or member in unmigrated state. | ||
3. Runtime apis for reading pool and member balance. | ||
|
||
crates: | ||
- name: westend-runtime | ||
bump: minor | ||
- name: kitchensink-runtime | ||
bump: patch | ||
- name: pallet-delegated-staking | ||
bump: patch | ||
- name: pallet-nomination-pools | ||
bump: minor | ||
- name: sp-staking | ||
bump: patch | ||
- name: pallet-nomination-pools-runtime-api | ||
bump: minor |
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.
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.
cool 👍