The constructor in the provided Solidity code does not validate whether the endTime is greater than startTime. This oversight could potentially lead to logical errors in the auction contract, disrupting the proper functioning of the auction.
The aunction contract is used to create aunctions for users intending to by zeno tokens while transferring usdc to the aunction contract. The issue lies in constructor part of the contract which fails to validate the two time standpoints of the aunction, being the start time and the end time. In a scenario where the end time is misappropriately lower than the start time, the aunction might end just before it started leading to a failed aunction process, also whenever users endeavour to participate in the aunction, the current timestamo is used to assess if they are still eligible to partcipate using the "whenActive" modifier, now the current timestamp was not in any way used to check if the start time or end time is not going to be in the past during the creation of the aunction.
Dos for intending buyers as aunctions may end before they actually start.
manual review
To appropriate ensure irregularity with time during aunction creation the following measures should be implemented:
-Ensure the start time and end time are greater than the block time stamp during the aunction creation.
-Ensure the end time is not less than the start time
-Hard code a time period interval for the aunction which ensures that the start tim and end time are never the same
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.