Skip to content

fix: explicit CEI documentation for claim_refund to close #546 - #726

Open
bbkenny wants to merge 4 commits into
Iris-IV:mainfrom
bbkenny:fix/reentrancy-claim-refund
Open

fix: explicit CEI documentation for claim_refund to close #546#726
bbkenny wants to merge 4 commits into
Iris-IV:mainfrom
bbkenny:fix/reentrancy-claim-refund

Conversation

@bbkenny

@bbkenny bbkenny commented Jul 31, 2026

Copy link
Copy Markdown

Closes #546

Summary of Changes
Added a comment to claim_refund in src/contributions.rs explicitly documenting that the token transfer follows the Checks-Effects-Interactions (CEI) pattern. claim_refund was already safe and implemented the CEI pattern correctly (i.e. updating state by removing contribution records before initiating the transfer), preventing a malicious token contract from double-claiming refunds. This PR serves to explicitly document this to close the lingering security issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Security] Reentrancy risk in claim_refund if token contract is malicious

1 participant