The comment states that the offer type must be Bid, but the code checks if it's Ask and reverts if it is. This is the opposite of what's intended.
The function's comment and its actual implementation are contradictory regarding the offer type check. Based on the comment, the function should only proceed if the offer type is Bid. It should revert for any other offer type.The code checks if the offer type is Ask and reverts if it is. This means it will allow any offer type that is not Ask, including Bid but also potentially other types if they exist.
This creates a logical contradiction where the function might allow offer types that it shouldn't, or disallow the very type it's supposed to accept.
This creates a logical contradiction where the function might allow offer types that it shouldn't, or disallow the very type it's supposed to accept. Valid Bid offers might be rejected, while invalid non-Bid offers (except Ask) might be accepted.
Manual Review
Align the code with the intended behavior
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.