QuantAMM

QuantAMM
49,600 OP
View results
Submission Details
Severity: low
Invalid

`UpdateWeightRunner::removeOracle` Does Not Verify Oracle Existence Before Emitting Event

Summary

The removeOracle function in the UpdateWeightRunner contract does not check if the specified oracle is already approved before proceeding to emit an event. As a result, the function emits the OracleRemoved event even when the oracle is not in the approved list.

Tools Used

Manual review

Recommendations

Add a check to ensure the oracle exists in the approvedOracles mapping before updating its status and emitting the event, similar to how the addOracle function performs validations.

Updates

Lead Judging Commences

n0kto Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational or Gas / Admin is trusted / Pool creation is trusted / User mistake / Suppositions

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.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.