The modifySupportedPool function in BoostController.sol uses a confusing and semantically incorrect error message when checking for redundant pool support modifications. The error message PoolNotSupported() suggests the pool is not supported when actually checking for an invalid state transition.
In the BoostController contract:
The issue arises because:
Error message suggests pool is not supported
Actually checking for redundant operation where:
Trying to add an already supported pool
Trying to remove an already unsupported pool
Creates confusion for integrators and users
Makes debugging more difficult
Confusing error messages for protocol integrators
Potential misunderstandings during debugging
Could lead to incorrect error handling in frontend applications
Manual code review
Create specific error for redundant operations:
Split into separate functions for better clarity:
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.