20,000 USDC
View results
Submission Details
Severity: gas

transfer/transferFrom return value not checked in Staking.sol

Summary

There are various occasions of using transfer/transferFrom without checking return value withing the contracts. While current implementation for WETH/Beedle tokens does not contain direct threats for funds or protocol usage, it is still highly advisable to check return values of these function or use openzeppelin safeERC20 functions.

Tools Used

Observation

Recommendations

Wrap the call into a require().

Support

FAQs

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