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

Missing input check

Summary

In the setFeeReceiver function any address can be given as an input for the _feeReceiver.

Vulnerability Details

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.

Recommendations

Add a check to see if _feeReceiver is the zero address and revert if that is the case.

Support

FAQs

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