The unstakeAll
function is intended to allow users to unstake all eligible deposits across multiple epochs. However, it lacks explicit handling for immediate unstaking of deposits from the current epoch.
The function does not contain specific logic to allow immediate unstaking of deposits from the current epoch. It applies the same lock cycle checks to all epochs, potentially restricting users from unstaking their current epoch deposits immediately.
The function iterates over all active deposits and applies the lock cycle check uniformly, without distinguishing between the current and past epochs.
Users may expect to unstake deposits upto the current epoch immediately, but the function's current logic does not support this, leading to potential dissatisfaction.
Manual Review
Introduce specific logic within the unstakeAll
function to allow immediate unstaking of deposits from the current epoch. This can be achieved by adding a condition to bypass the lock cycle check for the current epoch.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.