After performing the swap, the function does not explicitly check that the transfer tokens (alETH) were received by the contract
This can possibly be an issue if the swap was successful, for some reasons, (e.g. Insufficient liquidity in the pool, improper path configuration e.t.c.) the tokens were not properly transferred to the contract's balance.
Financial risk:
If transfer fails and the function does not validate the contract's balance, the strategy may proceed as if the the swap was successful potentially causing
Loss of tokens intended for the swap.
Incorrect accounting for assets in the strategy
Unit testing
Explicitly check the contract's balance after the swap to ensure it received the correct amount of alETH
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.