In DaiGoldAuction
, it is possible to start two auctions with less than config.auctionsTimeDiff
time difference.
function recoverToken
is used to recover the templeToken
for auction
which is in cooldown. The amount
is specified which is to be recovered and remaining is added in next auction. The function also deletes the data for that epochId
which means that auction
doesn't exist anymore.
Due to this deletion, it is possible to start an auction even if config.auctionsTimeDiff
time hasn't passed. The startAuction
function has following checks:
As _currentEpochId
is not updated in recoverToken
and the epochInfo
data corresponding to it is deleted, prevAuctionInfo.endTime
will be 0
. So, the condition prevAuctionInfo.endTime + config.auctionsTimeDiff > block.timestamp
will always pass because config.auctionsTimeDiff
will generally be 1 weeks or 2 weeks
. Due to this, it will be possible to start an auction as soon as recoverToken
is called.
New auction can be started with less difference of auctionsTimeDiff
.
Manual review
Do not delete whole epochInfo
in recoverToken
.
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.