code-423n4 / 2023-08-reserve-mitigation-findings

0 stars 0 forks source link

M-08 MitigationConfirmed #25

Open code423n4 opened 1 year ago

code423n4 commented 1 year ago

Lines of code

Vulnerability details

Comments

After the mitigation, the StRSR._payoutRewards function will not been skipped for freeze state.

There are two functions function payoutRewards() external and function stake(uint256 rsrAmount) public delete the main.frozen() check for _payoutRewards.

And calling _payoutRewards is added to the cancelUnstake function to payout rewards before updating draftRSR.

c4-judge commented 1 year ago

0xean marked the issue as satisfactory