This is a manual upgrade of the sixth item in QA report #86 , per judge @jack-the-pug’s assessment of it as a Medium risk issue.
> If currentMonth in init is 0, then CPI update will revert, zero div
<https://github.com/code-423n4/2022-03-volt/blob/main/contracts/oracle/ScalingPriceOracle.sol#L92>
<https://github.com/code-423n4/2022-03-volt/blob/main/contracts/oracle/ScalingPriceOracle.sol#L174>
<https://github.com/code-423n4/2022-03-volt/blob/main/contracts/utils/Deviation.sol#L23>
The text was updated successfully, but these errors were encountered:
All reactions