20,000 USDC
View results
Submission Details
Severity: high

State variables are updated after transfer - Reentrancy

Summary

State variables are updated after transfer of claimable tokens.

Vulnerability Details

In the claim() of 'Staking.sol' the state is updated after the transfer which can be vulnerable to reentrancy and can result in loss of funds.

Impact

The contract can get drained of its funds.

Tools Used

Slither

Recommendations

Update state variables before transferring tokens or use reentrancy protection. Checks-Effects-Interaction.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.