Missing Yield Return Could Result in Loss of Funds for Depositers
During the claimAndSwap
process, the claimAndSwap function fails to account for the accumulated yield as additional profit for depositors. This oversight results in significant losses for honest depositors, undermining trust and fairness in the system.
According to Transmuter documentation:
However, looking through claimAndSwap
function, it doesn't process any extra profit generated by accumulated yield.
It reveals a critical flaw in the claimAndSwap
function, which fails to update _totalAssets
when yields are accumulated. As a result, asset and share calculations become inaccurate.
Further analysis uncovers the incomplete implementation of the _harvestAndReport
function, which should accurately report the total assets during strategy execution but falls short of this responsibility.
Manual Review
Update _harvestAndReport
function to correctly reflect the earned yields as profit and included within total assets.
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.