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

Fee Receiver should be checked for non zero to prevent human error

Summary

In the lender contract, Owner can set fee Receiver as 0 address by mistake and fees collected during the effective time are lost.
Those funds cannot be recovered.

Vulnerability Details

In the lender contract, the setFeeReceiver does not check for 0 address. It is good practice to check for 0 address.

Impact

If zero address was set, fees collected during its effective tenure will be lost.

Tools Used

Manual review

Recommendations

Add a validation to ensure the _feeReceiver is a non zero address.

Support

FAQs

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