The function modifySupportedPool() incorrectly throws a PoolNotSupported() error even if the pool is supported.
The function modifySupportedPool() incorrectly throws a PoolNotSupported() error even if the pool is supported. This can cause a situation where a frontend app monitoring the error will report an already supported pool as not supported for users interacting with the app.
As seen in the code:
If isSupported == true and the pool is already supported (i.e supportedPools[pool] == true ) the function logic will throw a PoolNotSupported() error although the pool is supported.
Incoherence between the pool real state and error thrown .In case a frontend app is monitoring the pool state to take automated actions this can be misleading
Manual review
Correct the logic and throw a correct error ( for example: poolIsAlreadySupported for already supported pools ).
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.