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

Missing _weth and _staking address(0) validation in construction

Summary

_weth and _staking addresses should be validated in construction time restrincting

Vulnerability Details

Impact

Contract will be deployed with wrong parameters.

Tools Used

Manual Review

Recommendations

+ error ZeroAddress();
constructor(address _weth, address _staking) {
+ if(_weth == address(0)) revert ZeroAddress();
+ if(_staking == address(0)) revert ZeroAddress();
WETH = _weth;
staking = _staking;
}

Support

FAQs

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