20,000 USDC
View results
Submission Details
Severity: low

withdraw without Balance Check:Staking.sol

Summary

Check balance before transfer token or update balance because it may cause error like underflow or invalid balance

Vulnerability Details

withdraw: Staking.sol have no check on amount transfer , even we didn't check Insufficient balance

Impact

cause gas loss of underflow or claim token which he never deposit

Tools Used

Foundry and code review

Recommendations

Add revert or require check before perform any actions on the call

Support

FAQs

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