Skip to content

feat: enhance reentrancy protection and overflow safety across contract functions#280

Merged
greatest0fallt1me merged 1 commit into
Predictify-org:masterfrom
Baskarayelu:reenter
Jan 30, 2026
Merged

feat: enhance reentrancy protection and overflow safety across contract functions#280
greatest0fallt1me merged 1 commit into
Predictify-org:masterfrom
Baskarayelu:reenter

Conversation

@Baskarayelu

Copy link
Copy Markdown
Contributor
  • Integrated ReentrancyGuard checks in multiple functions to prevent reentrant calls during fund transfers and other critical operations.
  • Updated payout calculation logic to utilize checked arithmetic, ensuring safety against overflow and underflow.
  • Added comprehensive tests for reentrancy guard functionality, verifying that operations are blocked when the guard is active.
  • Improved documentation to clarify the purpose and usage of reentrancy locks in the contract.

#269 #270

…ct functions

- Integrated ReentrancyGuard checks in multiple functions to prevent reentrant calls during fund transfers and other critical operations.
- Updated payout calculation logic to utilize checked arithmetic, ensuring safety against overflow and underflow.
- Added comprehensive tests for reentrancy guard functionality, verifying that operations are blocked when the guard is active.
- Improved documentation to clarify the purpose and usage of reentrancy locks in the contract.
@Baskarayelu

Copy link
Copy Markdown
Contributor Author

@greatest0fallt1me Please check & merge it.

@greatest0fallt1me
greatest0fallt1me self-requested a review January 30, 2026 17:19
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

LGTM!

@greatest0fallt1me
greatest0fallt1me merged commit 764c7fc into Predictify-org:master Jan 30, 2026
1 check passed
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.

2 participants