This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Revamp nomination pool reward scheme #11669
Merged
Merged
Changes from 1 commit
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
ea30833
make pool roles optional
kianenigma 00e8c87
undo lock file changes?
kianenigma fa5e95a
add migration
kianenigma f2df79e
add the ability for pools to chill themselves
kianenigma 56cf997
boilerplate of tests
kianenigma 508bc0a
new system works, tests need fixing
kianenigma f83944a
somewhat stable, but I think I found another bug as well
kianenigma ac48c37
Fix it all
kianenigma cbeb9fb
Master.into()
kianenigma 031040f
Add more more sophisticated test + capture one more bug.
kianenigma efc7b4f
Update frame/staking/src/lib.rs
kianenigma 60d42f1
reduce the diff a little bit
kianenigma 02aa7d4
add some test for the slashing bug
kianenigma 90db26e
cleanup
kianenigma 5bf6d9c
Merge branch 'kiz-pool-chill' of github.com:paritytech/substrate into…
kianenigma 1d8c940
Master.into()
kianenigma 2ec4857
Merge branch 'master' of github.com:paritytech/substrate into kiz-poo…
kianenigma a51e408
fix lock file?
kianenigma 28c8852
Fix
kianenigma c9413a2
fmt
kianenigma 433476d
Merge branch 'master' of github.com:paritytech/substrate into kiz-poo…
kianenigma c34b655
Update frame/nomination-pools/src/lib.rs
kianenigma d0d75a1
Update frame/nomination-pools/src/lib.rs
kianenigma a6afb06
Update frame/nomination-pools/src/lib.rs
kianenigma a3a43e7
Update frame/nomination-pools/src/mock.rs
kianenigma 4b7b0c7
Fix build
kianenigma 3f66688
Merge branch 'kiz-pool-chill' of github.com:paritytech/substrate into…
kianenigma 640ec31
fix some fishy tests..
kianenigma 398ddfe
add one last integrity check for MinCreateBond
kianenigma d5dc697
remove bad assertion -- needs to be dealt with later
kianenigma 05fb517
Merge branch 'master' of github.com:paritytech/substrate into kiz-poo…
kianenigma f4dbd0a
nits
shawntabrizi 0a79c80
Master.into()
kianenigma 78c0310
Merge branch 'kiz-pool-chill' of github.com:paritytech/substrate into…
kianenigma 0fb1125
fix tests and add benchmarks for chill
kianenigma 12773bb
remove stuff
kianenigma ca475df
fix benchmarks
kianenigma 44a2722
Merge branch 'master' of https://github.com/paritytech/substrate into…
f027faf
cargo run --quiet --profile=production --features=runtime-benchmarks…
33b581c
Master.into()
kianenigma c77613f
Merge branch 'kiz-pool-chill' of github.com:paritytech/substrate into…
kianenigma d69af2c
remove defensive
kianenigma d318197
Merge branch 'master' of github.com:paritytech/substrate into kiz-poo…
kianenigma 486a0e9
first working version
kianenigma 9b2113f
Master.into()
kianenigma 36cb484
bring back all tests
kianenigma 723574b
ALL new tests work now
kianenigma 624abe9
Merge branch 'master' of github.com:paritytech/substrate into kiz-fix…
kianenigma 82287b0
cleanup
kianenigma e403fb1
make sure benchmarks and all work
kianenigma 4cad93a
Merge branch 'master' of https://github.com/paritytech/substrate into…
221369b
cargo run --quiet --profile=production --features=runtime-benchmarks…
696a55e
round of self-review, make arithmetic safe
kianenigma 0689b58
Merge branch 'kiz-fix-reward-pools-2' of github.com:paritytech/substr…
kianenigma bcb413c
fix warn
kianenigma bce40f7
add migration code
kianenigma 8fc25ac
Merge branch 'master' of github.com:paritytech/substrate into kiz-fix…
kianenigma fc3ad18
Fix doc
kianenigma 03107f3
Merge branches 'kiz-fix-reward-pools-2' and 'master' of github.com:pa…
kianenigma 9f875a9
add precision notes
kianenigma 0513284
make arithmetic fallible
kianenigma 1c43f09
fix node runtime
kianenigma ef56db6
a lot of precision tests and notes and stuff
kianenigma 3da2364
document MaxPOintsToBalance better
kianenigma ed5083f
Merge branch 'master' of github.com:paritytech/substrate into kiz-fix…
kianenigma 3690489
:round of self-review
kianenigma 62d35c8
fmt
kianenigma 1c840b2
fix some comments
kianenigma 7d9d403
Merge branch 'master' of github.com:paritytech/substrate into kiz-fix…
kianenigma 78b79f2
Master.into()
kianenigma a8ccd71
Fix proportional slashing logic
kianenigma 60b7641
Update frame/nomination-pools/src/tests.rs
kianenigma a2082cd
Update frame/nomination-pools/src/tests.rs
kianenigma ecb7890
Update frame/nomination-pools/src/lib.rs
kianenigma 7e56e1a
track poinst in migration
kianenigma 80b31c0
Merge branch 'kiz-fix-reward-pools-2' of github.com:paritytech/substr…
kianenigma 579da37
fix
kianenigma 51c1608
fmt
kianenigma 3779081
fix migration
kianenigma 9171a13
remove event read
kianenigma b9ab747
Apply suggestions from code review
kianenigma d4f45e7
Update frame/staking/src/lib.rs
kianenigma ca47b05
Update frame/nomination-pools/src/lib.rs
kianenigma f3e10a9
Update frame/nomination-pools/src/lib.rs
kianenigma 463ddfd
Merge branch 'master' of github.com:paritytech/substrate into kiz-fix…
kianenigma 51873c7
Merge branch 'kiz-fix-reward-pools-2' of github.com:paritytech/substr…
kianenigma c205ac3
update
kianenigma 69d1f9c
fmt
kianenigma 3efe9f5
fmt
kianenigma 84a2639
add one last test
kianenigma e7673f8
fmt
kianenigma ed2c225
Merge branch 'master' of github.com:paritytech/substrate into kiz-fix…
kianenigma de9886d
merged
kianenigma 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
:round of self-review
- Loading branch information
commit 3690489ccfabd54076fd8cacc90c2d6cd6fc7f04
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
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 |
|---|---|---|
|
|
@@ -255,6 +255,7 @@ pub mod v2 { | |
| id, | ||
| accumulated_reward | ||
| ); | ||
|
|
||
| if last_claim.is_zero() { | ||
| None | ||
| } else { | ||
|
|
||
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.