In updateUserBoost BoostController.sol#L179, the following line is present:
However, this check is intended to validate the user address rather than the pool, making the error message misleading.
The function updateUserBoost includes a validation check to ensure that the user address is not zero. However, the error message InvalidPool() suggests that the issue pertains to the pool rather than the user. This can cause confusion during debugging and may mislead developers when identifying the root cause of failures.
Misleading error messages can lead to incorrect debugging and extended troubleshooting time.
Developers may misinterpret the nature of the failure, possibly overlooking the real issue.
Manual code review.
Modify the revert statement to provide a more accurate error message, such as:
Ensure that error messages accurately describe the condition being checked to improve code clarity and maintainability.
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.