20,000 USDC
View results
Submission Details
Severity: low
Valid

Missing zero check address in constructor Staking.sol

Summary

In Staking.sol have set TKN and WETH addresses but there no have check for zero addresses. If deoplyer by mistake or error call constructor without set addresses then the protocol can't work.

Vulnerability Details

TKN and WETH missing zero check addresses

Impact

If TKN and/or WETH address is missing there no have check for that and the whole protocol won't work.

Tools Used

Manual review

Recommendations

require(address _token != address(0));
require(address _weth != address(0));

Support

FAQs

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