Skip to content

Assets Might Get Permanently Blocked After cancelTreasury in KeepWhatsRaised#18

Open
mahabubAlahi wants to merge 1 commit intooz-audit-fixesfrom
oz-fix-issue-7
Open

Assets Might Get Permanently Blocked After cancelTreasury in KeepWhatsRaised#18
mahabubAlahi wants to merge 1 commit intooz-audit-fixesfrom
oz-fix-issue-7

Conversation

@mahabubAlahi
Copy link
Collaborator

@mahabubAlahi mahabubAlahi commented Feb 23, 2026

Refactors disburseFees in KeepWhatsRaised so fees can be disbursed before or after campaign cancellation, avoiding accrued fees being stuck.

Changes

  • disburseFees(): Removed the whenNotCancelled modifier so the function can be called when the campaign is cancelled. It still uses whenNotPaused.
  • Docs: Natspec updated to state that the function is “callable before or after cancellation so that accrued fees are never trapped.”

Files changed
src/treasuries/KeepWhatsRaised.sol (2 insertions, 1 deletion)

…ee disbursement before or after cancellation, ensuring accrued fees are not trapped.
@mahabubAlahi mahabubAlahi changed the base branch from main to oz-audit-fixes March 3, 2026 08:24
@mahabubAlahi mahabubAlahi self-assigned this Mar 3, 2026
@mahabubAlahi mahabubAlahi changed the title Refactor disburseFees function in KeepWhatsRaised contract to allow fee disbursement before or after cancellation, ensuring accrued fees are not trapped. Assets Might Get Permanently Blocked After cancelTreasury in KeepWhatsRaised Mar 3, 2026
@mahabubAlahi mahabubAlahi added bug Something isn't working enhancement New feature or request labels Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant