unstake should update exchange rates first
The unstake function computes the number of shares to remove using the old exchange rate before updating it, causing users to burn more shares than necessary and lose accrued rewards. An attacker could exploit this to deprive themselves or others of rewards, though the primary impact is loss of funds for the user.
Covalent contest
High