DaiGoldAuction::startAuction
function does not follow CEI which could cost more gas than necessary when it reverts
The DaiGoldAuction::startAuction
function effects a state change in the _currentEpochId
variable, then checks a condition which can potentially revert all changes before using the updated value of the _currentEpochId
variable to effect other state changes
instead of checking for the condition before causing any state changes in the _currentEpochId
variable
Because the DaiGoldAuction::startAuction
function does not follow CEI, the function will cost more gas than necessary when it reverts.
Manual review
Since the check
does not depend on _currentEpochId
, the section of the DaiGoldAuction::startAuction
function that changes the state of the _currentEpochId
variable can be rearranged as follows
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.