In the protocol code, a misleading comment describes the oracleStateRequests
and isOracleRequestProcessed
mappings inaccurately. The comment references isOracleTaskProcessed
instead of the correct variable name, isOracleRequestProcessed
. This inconsistency between the comment and code can create confusion, making it harder to follow the logic of Oracle request processing, especially for new developers and auditors reviewing the code.
The issue can be found here: https://github.com/Cyfrin/2024-10-swan-dria/blob/main/contracts/swan/BuyerAgent.sol#L93
Incorrect comments can:
Lead to misunderstandings about how the protocol processes Oracle requests.
Increase the likelihood of errors, especially for new developers or during audits.
Slow down maintenance and troubleshooting, as the comments contradict the actual variable names.
Manual Review
Update the comment to reflect the correct variable name, isOracleRequestProcessed
, to prevent confusion.
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.