The SystemConfig::updateMarket function lacks a validation check to ensure that the settlement period has elapsed before allowing updates to market information. This permits the owner to invoke the function at any time, potentially disrupting ongoing trades.
The updateMarket function is responsible for updating critical market parameters. However, it does not validate whether the settlement period has expired before proceeding with the update. This can lead to the function being called prematurely during an active trading session.
The absence of a check for the settlement period allows the function to be executed at any time, even before the intended settlement period has elapsed.
Manual review
It is recommended to implement a validation check in the updateMarket function to ensure that the settlement period has passed before proceeding with any updates. This can be accomplished by comparing the current block timestamp with the sum of the Token Generation Event (TGE) timestamp and the settlement period.
The following issues and its duplicates are invalid as admin errors/input validation/malicious intents are1 generally considered invalid based on [codehawks guidelines](https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity#findings-that-may-be-invalid). If they deploy/set inputs of the contracts appropriately, there will be no issue. Additionally admins are trusted as noted in READ.ME they can break certain assumption of the code based on their actions, and
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.