52891 sc low staking and unstaking immediately an amount little less than the original staked amount leaves dust stake amounts in the system
Description
Brief/Intro
Vulnerability Details
function _validateStakeAmount(
uint256 amount
) internal view {
PlumeStakingStorage.Layout storage $ = PlumeStakingStorage.layout();
if (amount == 0) {
revert InvalidAmount(0);
}
if (amount < $.minStakeAmount) {
revert StakeAmountTooSmall(amount, $.minStakeAmount);
}
}Impact Details
References
Proof of Concept
Previous52896 sc low pause gate is present but no way to pauseNext52996 sc high users can claim rewards for newly added reward tokens even when the validator they staked for was inactive during some time interval
Was this helpful?