user won't be able to get his rewards in case of staking with amount = 0 #146
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
question
Further information is requested
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
CertoraInc
Vulnerability details
Limbo.sol (
stake()
function)if a user has a pending reward and he call the
stake
function withamount = 0
, he won't be able to get his reward (he won't get the reward, and the reward debt will cover the reward)that's 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
The text was updated successfully, but these errors were encountered: