ContestManager::closeContest()
has only one line of code and that is calling ContestManager::_closeContest()
. This is not required and moving the code of _closeContest
to closeContest
and removing the _closeContest
function entirely would be better.
LoC:
https://github.com/Cyfrin/2024-08-MyCut/blob/946231db0fe717039429a11706717be568d03b54/src/ContestManager.sol#L53-L60
Making the changes would reduce gas costs and make the code cleaner.
Manual Review
Make the following changes:
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.