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.
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.
Consider implementing a try-catch pattern (if possible) or allow partial redemptions by tracking successes/failures.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.