Lucene search

K
code423n4Code4renaCODE423N4:2022-03-VOLT-FINDINGS-ISSUES-128
HistoryApr 27, 2022 - 12:00 a.m.

If currentMonth in init is 0, then CPI update will revert, zero div

2022-04-2700:00:00
Code4rena
github.com
6

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&gt;
<https://github.com/code-423n4/2022-03-volt/blob/main/contracts/oracle/ScalingPriceOracle.sol#L174&gt;
<https://github.com/code-423n4/2022-03-volt/blob/main/contracts/utils/Deviation.sol#L23&gt;


The text was updated successfully, but these errors were encountered:

All reactions