The onlyWhenLive
modifier in the DaiGoldAuction
contract checks if the current epoch is active but does not verify if the auction has ended. This could allow users to deposit bids even after the auction's end time, potentially leading to inconsistencies and unfairness in the auction process.
The onlyWhenLive
modifier, used in the bid
function, ensures that bids can only be placed during an active auction epoch. However, it only checks if the epoch is active (info.isActive()
) and does not consider the auction's end time (info.endTime
). This means that even after the auction has concluded, users might still be able to deposit bids if the epoch itself hasn't been explicitly marked as ended.
Users could continue depositing bids even after the auction has officially ended. This could lead to incorrect calculations of the final bid amounts and the distribution of TGOLD rewards.
Manual Review
Enhance the onlyWhenLive
modifier to include a check for the auction's end time:
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.