20,000 USDC
View results
Submission Details
Severity: medium

Instant change of feeReceiver could lead to loss of income

Summary

Fee receiver address is changed instantly leading to possible loss of income .

Vulnerability Details

Impact

If the owner accidentally enters the wrong address into the setFeeReceiver() function it could lead to a loss of income from fees till the owner realizes the mistake made and calls the same function again with the correct address. The impact on lost income could range from none to large depending on the size and popularity of this protocol at the moment of mistake and the time that passes till the owner realizes the wrong address was entered into the setFeeReceiver() function.

Tools Used

Manual Analysis

Recommendations

Implement timelock to setFeeReceiver() function to introduce a small time delay.

Support

FAQs

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