The _harvestAndReport
function should return the new value of the strategy totalAssets
which reflects the strategy profit. But the current implementation of the function might return stale information about actual asset
balances which cause incorrect shares locking periods. This causes incorrect shares/assets ratio when depositing and withdrawing. The issue appears in all strategies of the scope.
The _harvestAndReport
function is an important part of the strategy logic, which calculates how many additional shares should be minted and locked for slow rewards unlocking. But the current implementation just returns the assets
current balances which might be updated a long before.
The report
function relays on the harvestAndReport
to calculate shares:
Unintended behavior, potential asset losses, incorrect shares/assets conversion
Manual Review
Consider calling claimAndSwap
at the same time with the report
function or including claimAndSwap
call as internal in the _harvestAndReport
function.
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.