Contract fails to deliver promised returns, but doesn't lose value
Description
Brief/Intro
The PeapodsETHStrategy uses Peapods vault's convertToAssets() function to calculate base rates per second for APR/APY estimation. However, this function relies on cached total assets values, while previewRedeem() provides more accurate estimates by simulating interest accrual. This discrepancy leads to consistently inaccurate yield calculations.
Vulnerability Details
The root cause lies in the PeapodsETHStrategy::_computeBaseRatePerSecond() function's reliance on cached interest rate data. The strategy calculates the price per share (PPS) using:
According to the Peapods vault implementation, convertToAssets() uses a cached conversion rate (_cbr()) with cached _totalAssets, while previewRedeem() uses _previewCbr() which simulates interest accrual to provide current, accurate conversion rates.
The issue affects the entire yield calculation chain:
_computeBaseRatePerSecond() returns inaccurate rates due to stale data
snapshotYield() uses these rates to calculate APR: uint256 apr = totalRatePerSec * SECONDS_PER_YEAR
APY calculations via _approxAPY() compound the inaccuracy
These estimates are smoothed and stored in estApr and estApy state variables
The same issue affects the realAssets() function:
Impact Details
The strategy's estApr and estApy values will not reflect the actual current yield performance.