The first-ever created Auction Config in SpiceAuction.sol will revert if an attempt is made to remove it using the remove auction config in SpiceAuction::removeAuctionConfig.
SpiceAuction::removeAuctionConfig, have a validation that reverts the whole function when trying to remove the first ever auction which is if (info.startTime == 0) revert InvalidConfigOperation
, this means that the removeAuctionConfig
will revert in line 113 without completing the rest of function due to this validation, remember this only happens in the first ever auction in the SpiceAuction
contract
If the daoExecutor happens for any reason want to remove the first auction config, it will throw an error, with this reason the contract becomes useless because the AuctionConfig cannot be removed. The inability to remove the first auction config without redeploying the contract significantly hinders the functionality and flexibility of the contract.
Below is the removeAuctionConfig() function highlighting the problematic check:
To address this issue, it is recommended to update the function logic to allow the removal of the first auction config. This can be achieved by ensuring that the check for info.startTime is appropriately handled for the initial epoch:
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.