https://github.com/Cyfrin/2024-07-the-predicter/blob/main/src/ThePredicter.sol#L93
The condition in ThePredicter::makePrediction
can be removed because there is a function call to ScoreBoard::setPrediction
where the same condition is checked. Removing this duplicate condition doesn't change the code logic but saves gas by checking the datetime restriction once instead of twice.
The code is more gas expensive to execute when checking datetime restrictions twice instead of once.
Remove the datetime restriction condition in the ThePredicter::makePrediction
function.
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.