Skip to content

Assets Might Get Permanently Blocked After cancelTreasury in KeepWhatsRaised (OZ-7)#18

Merged
mahabubAlahi merged 1 commit intooz-audit-fixesfrom
oz-fix-issue-7
Mar 19, 2026
Merged

Assets Might Get Permanently Blocked After cancelTreasury in KeepWhatsRaised (OZ-7)#18
mahabubAlahi merged 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
@rayedsikder rayedsikder deleted the branch oz-audit-fixes March 13, 2026 16:07
@rayedsikder rayedsikder reopened this Mar 13, 2026
@mahabubAlahi mahabubAlahi changed the title Assets Might Get Permanently Blocked After cancelTreasury in KeepWhatsRaised Assets Might Get Permanently Blocked After cancelTreasury in KeepWhatsRaised (OZ-7) Mar 19, 2026
@mahabubAlahi mahabubAlahi merged commit 270f7e7 into oz-audit-fixes Mar 19, 2026
1 check passed
@mahabubAlahi mahabubAlahi deleted the oz-fix-issue-7 branch March 19, 2026 07:27
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.

3 participants