The sponsor correctly mitigated issue H-01 by adding a tracker for the mapping userTotalStaked which successfully adds the return amount of released funds back to the staker. This mapping wasn't previously updated to correspondent the returned amount of funds as a result even after the funds were released, they were not going to be withdrawable and would be permanently stuck in the system.
l would only suggest the userTotalStaked value to be updated at the end of the function alongside the totalSlashed one, but that's more like a design choice rather than issue in my opinion.
Lines of code
Vulnerability details
Mitigation comment
The sponsor correctly mitigated issue H-01 by adding a tracker for the mapping userTotalStaked which successfully adds the return amount of released funds back to the staker. This mapping wasn't previously updated to correspondent the returned amount of funds as a result even after the funds were released, they were not going to be withdrawable and would be permanently stuck in the system.
l would only suggest the userTotalStaked value to be updated at the end of the function alongside the totalSlashed one, but that's more like a design choice rather than issue in my opinion.