Incorrect error message
The modifySupportedPool()
function in the BoostController
contract has inconsistent error handling for pool support status. The function checks if the supportedPools
mapping already has the desired status for a given pool
address and reverts with a PoolNotSupported()
error if the status is unchanged. However, the error message PoolNotSupported()
is misleading in this context, as it suggests the pool is not supported, rather than indicating that the pool's support status is already set to the desired value.
The relevant code is as follows:
The misleading error message can cause confusion for developers and users interacting with the contract, as it does not accurately describe the reason for the transaction's failure.
Manual Review
Update the error message to more accurately reflect the condition being checked. For example, use a custom error like PoolStatusUnchangedIncorrect Error Handling in `modifySupportedPool()` function()
to indicate that the pool's support status is already set to the desired value.
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.