When adding an oracle there is a revert statement if the oracle has already been added, however when removing an oracle, even if it has been removed before or doesn't exist the function will execute seamlessly and emit an event to the backend, while this does not lead to loss of funds it can be misleading for registry related operations
in the removeOraclefunction there is no check as to whether the oracle to be removed exists in the system or not.
This inconsistency is pronounced as there is a check in the addOracle function here:
Inconsistency in admin operations, misleading emits.
Manual Review
Check for existence of the oracle before event emission and revert if the oracle to be removed is not present in the system
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.