The first ever created Auction Config in SpiceAuction.sol
will revert if you try and remove it via SpiceAuction::removeAuctionConfig
.
Inside SpiceAuction::removeAuctionConfig
there is a check that if info.startTime == 0
on that epoch it will revert. We grab the current epoch from the state variable AuctionBase::_currentEpochId
, which is the last epoch as natspec says -
/// @notice Remove auction config set for last epoch
. But on the first ever created auction config, there is no prior epochs making the daoExecutor
unable to remove the first auction config ever created since EpochInfo.startTime
is only ever updated inside SpiceAuction::startAuction
.
Add this PoC in SpiceAuction.t.sol
-
If the daoExecutor
messes up the first auction config, it hinders the contract useless since he can not remove it and create a new one to fix any mistakes without redeploying.
Foundry
Add a condition inside SpiceAuction::removeAuctionConfig
that if it's the first Auction Config ever, you can still remove the config, even if EpochInfo.startTime
is 0.
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.