Users can potentially control their losses because the era and draftEra can be increased independently in the seizeRSR function.
Mitigation
To mitigate this, governance can call the resetStakes function when the draftRate exceeds the safe range.
This allows the governor to reset both the stakeRate and draftRate to 1 simultaneously, preventing users from manipulating their losses.
While this is not a perfect solution, as it relies on the governor properly executing the function, the likelihood and impact of the issue are low.
Therefore, I have marked it as confirmed
Lines of code
Vulnerability details
Users can potentially control their losses because the
era
anddraftEra
can be increased independently in theseizeRSR
function.Mitigation
To mitigate this,
governance
can call theresetStakes
function when thedraftRate
exceeds thesafe range
. This allows thegovernor
to reset both thestakeRate
anddraftRate
to1
simultaneously, preventing users from manipulating their losses.While this is not a perfect solution, as it relies on the governor properly executing the function, the likelihood and impact of the issue are low. Therefore, I have marked it as confirmed