The ip_ variable is not calculated in the most gas-efficient way.
By unwrapping the paranthesis of the expression ((endTime_ - payoutStart_ - intervalsPassedBefore_ * interval_) / interval_), the term intervalsPassedBefore would be first multiplied by interval_ only to be divided by it again. Removing this term from the paranthesis would avoid performing an additional multiplication operation.
Extra gas is spent for additional arithmetic operation
Manual inspection
Rewrite the term as ((endTime_ - payoutStart_) / interval_ - intervalsPassedBefore_)
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.