There are couple of checks in BoostController.sol that revert with the wrong error
BoostController implements several checks in different functions. However, multiple checks revert with the incorrect error, which can lead to user confusion and inaccurate error reasoning.
In the function modifySupportedPool() there is a check if (supportedPools[pool] == isSupported) revert PoolNotSupported() which means that the PoolNotSupported error will be returned even if the pool is already supported, i.e., if it has already been whitelisted before.
In the following function updateUserBoost(), a user should provide address user and address pool. The if branch checks if user == address(0) and reverts with the error InvalidPool(), which is, again, an incorrect error for this check.
This can lead to user confusion as they won't receive the accurate revert reason.
Manual review
Use accurate errors for specific situations, for example PoolAlreadySupported and ZeroAddressError
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.