Inaccurate comment in recoverTokens
#213
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
cmichel
Vulnerability details
The
recoverTokens
function's comment states that the excess deposit tokens arebalance - depositTokenAmount
:But it is
balance - (depositTokenAmount - redeemedDepositTokens)
where(depositTokenAmount - redeemedDepositTokens)
is the outstanding redeemable amount.Impact
The code is correct.
Recommended Mitigation Steps
Fix the comment.
The text was updated successfully, but these errors were encountered: