userAvgPrices
mapping which contains the avg price paid for each IdleToken of a user, so to calculate earnings (in underlying) one can do the following:tokenPriceWithFee
is available only for IdleToken of the Best yield strategy. For the Risk adjusted strategy fee must be accounted on the integrators side or by using this helper.
Here you can find more info and also a follow up here.