Skip to content

Conversation

@xqft
Copy link
Contributor

@xqft xqft commented Dec 18, 2024

move state update before call

Description

If the nonReentrant modifier is removed, the claim function is prone to the reentrancy bug, by moving the state update above the transfer call we add redundancy to protect against the bug.

Type of change

Please delete options that are not relevant.

  • Bug fix

@JuArce JuArce merged commit 5768201 into yetanotherco:testnet Dec 18, 2024
@ilitteri
Copy link
Contributor

Fixes Least Authority Suggestion 1

PatStiles pushed a commit that referenced this pull request Jan 10, 2025
Co-authored-by: Javier Rodríguez Chatruc <[email protected]>
Co-authored-by: Julian Arce <[email protected]>
PatStiles pushed a commit that referenced this pull request Jan 10, 2025
Co-authored-by: Javier Rodríguez Chatruc <[email protected]>
Co-authored-by: Julian Arce <[email protected]>
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.

5 participants