The claimAndSwap
function in the contract exhibits an issue related to asset mismanagement. Specifically, the function deposits the entire balance of asset (alETH) held by the contract into the transmuter after performing a swap. This includes not only the swapped amount but also any existing asset balance unrelated to the current operation. This mismanagement could lead to unintended fund deposits, disruption of protocol operations, and potential exploitation in scenarios where the contract holds significant unrelated funds.
The issue arises in this function;
Here, the function deposits the entire balance of asset held by the contract into the transmuter, rather than just the amount received from the router.exchange call. This approach fails to account for any pre-existing asset balance in the contract, leading to unintended consequences.
It doesn't directly allow for fund theft, but it could result in significant fund mismanagement or protocol disruption.
Manual Review
It is recommended to deposit only swapped funds into the transmuter.
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.