The strategyOp::_swapUnderlyingToAsset function lacks a return value check after calling swapExactTokensForTokens.This omission prevents the function from tracking the exact outcome of the transaction and ensuring that the minimum expected amount was received.
The swap could fail silently (return 0) without being detected.
Even if the swap succeeds, it might return less than minOut due to slippage, which wouldn't be caught.
Manual review
To fully mitigate this issue, you should check the return value after the swap, like this:
This modification ensures that the actual result of the swap meets the minimum output requirement.
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.