The claimAndSwap
function in the StrategyOp
contract contains a potential bug when _amountClaim == 0
. In this case, the function performs unnecessary operations.
This results in a swap operation where the amount being swapped is 0
. While this might not perform a "real" swap, it still interacts with the router, and depending on the implementation of the router, this could trigger changes in internal state or balances, leading to unintended behavior.
Executing a swap with 0
tokens can trigger internal state changes or balance shifts in the router or related contracts, which could lead to incorrect balances or other unintended effects.
The following code must be added.
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.