Skip to content

refactor: bonded coins audit fixes#873

Merged
rflechtner merged 24 commits intodevelopfrom
bonded-coins-audit-fixes
Apr 30, 2025
Merged

refactor: bonded coins audit fixes#873
rflechtner merged 24 commits intodevelopfrom
bonded-coins-audit-fixes

Conversation

@rflechtner
Copy link
Contributor

@rflechtner rflechtner commented Mar 10, 2025

fixes KILTProtocol/ticket#3795

Branch containing all changes from the bonded coins pallet audit.

Checklist:

  • I have verified that the code works
    • No panics! (checked arithmetic ops, no indexing array[3] use get(3), ...)
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)
    • Either PR or Ticket to update the Docs
    • Link the PR/Ticket here

@rflechtner rflechtner changed the title Bonded coins audit fixes refactor: bonded coins audit fixes Mar 10, 2025
rflechtner and others added 6 commits March 10, 2025 17:36
## fixes audit issue 13

Disallows manager changes after a pool has been moved to refunding or
destroying.
## fixes KILTProtocol/ticket#3813

Following recommendations by OAK, this adds another event to be emitted on calling `reset_team`. This is emitted in addition to the events emitted by the assets pallet itself.
## re/ KILTProtocol/ticket#3800

Addresses potential centralisation concerns around excessive manager permissions.
If set to `false` the reset_team() transaction cannot be used on this pool, 
in which case the manager has much more limited privileges (locking/unlocking and
initiating refunding). This flag can only be set on pool creation and not changed.
@rflechtner rflechtner marked this pull request as ready for review April 23, 2025 10:10
@rflechtner rflechtner requested a review from Ad96el April 23, 2025 10:10
Ad96el
Ad96el previously approved these changes Apr 25, 2025
Copy link
Contributor

@Ad96el Ad96el left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two more nitpicks!

@Ad96el Ad96el added the ci-skip-docs-pr ci-skip-docs-pr label Apr 25, 2025
@rflechtner rflechtner merged commit 5f0b75e into develop Apr 30, 2025
17 checks passed
@rflechtner rflechtner deleted the bonded-coins-audit-fixes branch April 30, 2025 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-skip-docs-pr ci-skip-docs-pr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants