In the setFeeReceiver
function any address can be given as an input for the _feeReceiver
.
This function can only be called by the owner of the contract, so this cannot be exploited, but the owner can mistakenly set the address of the feeReceiver
to the zero address. That means all of the fees will go to the zero address which is means they will be lost forever.
Add a check to see if _feeReceiver
is the zero address and revert if that is the case.
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.