The require statement in updateTotalFrozen and batchUpdateTotalFrozen to check that totalStaked ≥ totalFrozen should be done both before and after _updateTotalFrozen is called to ensure that totalStake is still ≥ totalFrozen. This will serve as a sanity check to ensure that the integrity of the system is not compromised.
Handle
itsmeSTYJ
Vulnerability details
Impact
The require statement in
updateTotalFrozen
andbatchUpdateTotalFrozen
to check that totalStaked ≥ totalFrozen should be done both before and after_updateTotalFrozen
is called to ensure that totalStake is still ≥ totalFrozen. This will serve as a sanity check to ensure that the integrity of the system is not compromised.