Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add more events to nomination pools #11343

Merged
merged 4 commits into from
May 4, 2022

Conversation

kianenigma
Copy link
Contributor

  • emit an event when member is removed
  • only emit payout event if amount is non-zero.
  • fix a bug that would prematurely kill an account when their active points would go to zero: correct is to kill them when their total points go to zero.
  • fix a bug where permission-less unbond was allowed to be partial - this allows an attacker to create a large number of epsilon unlock chunks for anyone who can be permissionlessly unbonded and clog the system.
  • added new tests and events to some of the tests that help identify such issues.

@kianenigma kianenigma added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. labels May 3, 2022
@kianenigma
Copy link
Contributor Author

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot
Copy link

Merge cancelled due to error. Error: Head SHA changed from b577e2d to ccc73e5

@kianenigma
Copy link
Contributor Author

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 8fbed21 into master May 4, 2022
@paritytech-processbot paritytech-processbot bot deleted the kiz-pools-eventify-tests branch May 4, 2022 13:17
@jakoblell jakoblell added D1-audited 👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited and removed D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. labels May 10, 2022
@kianenigma kianenigma assigned kianenigma and unassigned kianenigma May 16, 2022
@kianenigma kianenigma changed the title fix a few things with nomination pools Add more events to nomination pools May 16, 2022
godcodehunter pushed a commit to sensoriumxr/substrate that referenced this pull request Jun 22, 2022
* fix a few things with nomination pools

* fix typo

* fix build

* add missing try-runtime feat
DaviRain-Su pushed a commit to octopus-network/substrate that referenced this pull request Aug 23, 2022
* fix a few things with nomination pools

* fix typo

* fix build

* add missing try-runtime feat
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* fix a few things with nomination pools

* fix typo

* fix build

* add missing try-runtime feat
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D1-audited 👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants