The absence of a critical check for zero' address(0) in the setFeeReceiver function. This function is used to update the feeReceiver state variable, which determines the recipient of fees within the smart contract's operations.
In the setFeeReceiver function, the contract owner is able to update the feeReceiver variable with a new address. However, the function lacks a check for the zero address(0). The missing check exposes the contract to a risk where the fees could be irreversibly directed to the zero address, effectively fees getting lost.
If the feeReceiver is set to the zero address, any fees directed to this address would be lost.
VS Code
Manual Review
Consider adding a check within the setFeeReceiver function to ensure the _feeReceiver address is not the zero address.
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.