Wrongly Deposit Whole Balance in claimAndSwap
function After Swap
The claimAndSwap
function incorrectly deposits the entire alETH balance of the strategy contract instead of the swapped amount, potentially causing unexpected losses or mismanagement of protocol funds.
Here's the implementation of claimAndSwap
function of StrategyOp contract:
As seen above, it deposits whole balance of stratey contract via transmuter.deposit
call. Technically, the swapped amount through the claim is balAfter - balBefore
not the whole balance. This mistake could lead to depositing unintended funds, including any pre-existing asset token balance already held by the contract.
Unintended deposits of pre-existing asset token balances into the transmuter contract could lock funds, causing liquidity issues and disrupting the execution of subsequent operations.
Manual Review
Update the deposit amount as balAfter - balBefore
:
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.