Normal Behavior: Validation checks should ensure that inputs meet the minimum business requirements of the protocol.
Specific Issue: In the list function, the contract checks require(_price >= MIN_PRICE). Since MIN_PRICE is a constant set to 1e6 (1 USDC), any price that passes this check is already guaranteed to be greater than zero. The subsequent require(_price > 0) check is redundant. Similarly, in updatePrice, while MIN_PRICE isn't used, the protocol's business logic establishes that 1 USDC is the floor.
Likelihood: High
Reason 1: This code is executed every time a listing is created or updated.
Impact: Low (Gas)
Impact 1: Wasted Gas. Each execution costs additional gas to load the _price variable again, perform a comparison, and evaluate the conditional jump.
Remove the redundant _price > 0 check
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.
The contest is complete and the rewards are being distributed.