HardhatDeFi
15,000 USDC
View results
Submission Details
Severity: low
Invalid

use `try-catch` to handle partial redeem

Summary

The batchRedeemPositionTokenand batchRedeemWToken redeem position token and wToken in loopd taking in parameters, If any single redemption in the batch fails (e.g., invalid token, insufficient balance, zero amount, invalid recipient), the entire batch reverts and Users cannot perform partial redemptions.

Vulnerability Details

if a certain user want calls the batchRedeemPositionTokenwith the parameters and he wants to redeem 20, if the 10 redeem fails the entire batch will reverts which will cost the wastage of gas.

Impact

Tools Used

Recommendations

Consider implementing a try-catch pattern (if possible) or allow partial redemptions by tracking successes/failures.

Updates

Lead Judging Commences

bube Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.