https://github.com/Cyfrin/2024-12-alchemix/blob/82798f4891e41959eef866bd1d4cb44fc1e26439/src/StrategyOp.sol#L79
The claimAndSwap process overlooks the inclusion of accumulated yield as part of the profits owed to depositors. This results in depositors receiving less than their fair share, causing financial discrepancies and damaging the integrity of the system.
This comes with claimAndSwap
function which neglects profit from yield generation. Missing the logic to update _totalAssets
with yields and it causes misconception throughout strategy operations. Following code lines show the implementation:
Manual Review
Update claimAndSwap
function properly to reflect generated yields by depositing into 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.