This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Multiple vesting schedules per account#7699
Closed
raoulmillais wants to merge 12 commits intoparitytech:masterfrom
Closed
Multiple vesting schedules per account#7699raoulmillais wants to merge 12 commits intoparitytech:masterfrom
raoulmillais wants to merge 12 commits intoparitytech:masterfrom
Conversation
7a0f325 to
7fb4540
Compare
1728aca to
b76844e
Compare
Author
|
Needs a companion PR |
- Add config value for max vesting schedules (currently not honoured)
- Check for too many schedules when adding schedules instead of erroring if there is one - Update storage with only remaining schedules (incomplete ones) after updating the lock - Update module genesis building to support multiple vesting schedules in genesis config (sum unvested balances so far before adding vesing schedule and set lock to total unvested balance across all schedules) - Update vesting_balance to return None if there are no vesting schedules, or sum up the vested_at for all vesting schedules - Update tests for api change - Add new tests for more than one schedule (disjoint and concurrent)
- ADds missing docs for `vested_transfer` and `force_vested_transfer`
- test happy path
b76844e to
cc08dbe
Compare
Contributor
|
I suppose unfortunately this will not be finished, correct? |
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This implements allowing multiple vesting schedules per account in the vesting pallet. This will ultimately fix #7101
Please be gentle I am new to both rust and substrate! :)
Task List
Support multiple vestings per account:
VestingInfoto account →VecofVestingInfoVestingInfotoVecofVestingInfoSupport consolidating vestings in account
valid/invalid combinations for algorithm
Companion polkadot PR
See companion PR for substrate#7040