Submitted by CertoraInc, also found by Randyyy
If a user has a pending reward and he calls the stake function with amount = 0, he wont be able to get his reward (he wont get the reward, and the reward debt will cover the reward)
Thats happening because the reward calculation is done only if the staked amount (given as a parameter) is greater than 0, and it updates the reward debt also if the amount is 0, so the reward debt will be updated without the user will be able to get his reward
gititGoro (Behodler) confirmed and commented:
Jack the Pug (judge) increased severity from Low to Medium and commented:
