Missing checks for address(0x0) or zero value when assigning values to state variables:
Line 20: WETH = _weth;
Line 21: staking = _staking;
Line 32: TKN = IERC20(_token);
Line 33: WETH = IERC20(_weth);
Line 39: TKN.transferFrom(msg.sender, address(this), _amount);
Line 48: TKN.transferFrom(msg.sender, address(this), _amount);
Line 86: lenderFee = _fee;
Line 94: borrowerFee = _fee;
Line 101: feeReceiver = _feeReceiver;
Line 224: pools[poolId].interestRate = interestRate;
Seting address(0x0) or zero value checks is important to prevent contracts from unintended behaviors while interacting with uninitialized or invalid addresses. Zero value input can also disrupt some protocol functionalities.
Manual Analysis, VScode
Implement checks for unwanted values before seting a state variable.
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.