Closed code423n4 closed 1 year ago
The migration update the lastPayout and lastPayoutBal storage in the catch block. So even the melt function revert for the notFrozen check, the FurnaceP1.setRatio can also work normally.
lastPayout
lastPayoutBal
melt
notFrozen
FurnaceP1.setRatio
try this.melt() {} catch { uint48 numPeriods = uint48((block.timestamp) - lastPayout) / PERIOD; lastPayout += numPeriods * PERIOD; lastPayoutBal = rToken.balanceOf(address(this)); }
0xean marked the issue as nullified
Lines of code
Vulnerability details
Comments
The migration update the
lastPayout
andlastPayoutBal
storage in the catch block. So even themelt
function revert for thenotFrozen
check, theFurnaceP1.setRatio
can also work normally.