In SpiceAuction::setAuctionConfig
, if this function is called more than once for the same epoch, it will inadvertently overwrite the existing config.
Even though setAuctionConfig
is only callable by daoExecutor
, it could happen that, by mistake, an existing auction config gets inadvertently modified.
Add this test to SpiceAuction.t.sol
Inadvertently overwriting an existing auction configuration.
Foundry
Check in setAuctionConfig
whether there is an existing configuration set for this given epoch and if so revert. This way, removeAuctionConfig
will have to be invoked before replacing an existing configuration so avoiding accidental modifications.
Add the following in setAuctionConfig
:
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.