The DaiGoldAuction and SpiceAuction contracts have different validation rules for the auctionStartCooldown
parameter in their respective setAuctionConfig
functions. Specifically, the DaiGoldAuction
contract requires auctionStartCooldown
to be non-zero, while the SpiceAuction
contract allows it to be zero.
The differing validation rules for auctionStartCooldown
between the DaiGoldAuction
and SpiceAuction
contracts can lead to confusion and potential misconfigurations. Users or administrators may expect the same behavior across both contracts but encounter different requirements, leading to potential issues in auction setup and execution.
Manual code review
To ensure consistency and reduce the risk of misconfigurations, the validation rules for auctionStartCooldown
should be aligned across both DaiGoldAuction
and SpiceAuction
contracts. There are two possible approaches:
Allow zero value for auctionStartCooldown
in DaiGoldAuction
:
Enforce non-zero value for auctionStartCooldown
in SpiceAuction
:
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.