The _harvestAndReport()
function incorrectly calculates total assets by double counting underlying tokens and missing claimable balances, leading to inaccurate profit/loss reporting.
In _harvestAndReport()
, the total assets calculation is:
Two key issues:
underlyingBalance
should not be included since underlying tokens (WETH) are immediately swapped to asset (alETH) in claimAndSwap()
The function misses claimable
balance from the transmuter which represents exchanged tokens that can be claimed
The correct calculation should be:
Incorrect total assets reporting leads to wrong profit/loss calculations in the TokenizedStrategy's report()
function
This affects:
Performance fee calculations
Share price calculations
Profit unlocking mechanism
Users may receive wrong share amounts when depositing/withdrawing
Protocol fees may be calculated incorrectly
Manual code review
Understanding of TokenizedStrategy's report()
mechanism
Remove underlyingBalance
from total assets calculation
Add claimable
balance to the total:
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.