There is an absence of validation checks for WETH
and staking
parameters.
Does not contain any checks to ensure that the _weth
and _staking
addresses are not zero addresses. Without these checks, it is possible to initialize the contract with invalid addresses, which can lead to a variety of problems in the subsequent execution of the contract.
If _staking
was initialzed to zero, funds send with IERC20(WETH).transfer(staking, IERC20(WETH).balanceOf(address(this)));
will be lost.
Manual review
Implement require statements to validate that the _weth
and _staking
addresses are not zero addresses. Example:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.