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.
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
andfunction stake(uint256 rsrAmount) public
delete themain.frozen()
check for_payoutRewards
.And calling
_payoutRewards
is added to thecancelUnstake
function to payout rewards before updating draftRSR.