XVA-06M: Improper Gain Evaluation
Description:
The gain of the strategy does not factor the loss nor the performance fees applied to the gains.
Example:
if (loss > 0) {
_reportLoss(msg.sender, loss);
}
_assessFees(msg.sender, gain);
strategies[msg.sender].totalGain = strategies[msg.sender].totalGain.add(gain);
Recommendation:
We advise this to be done so to avoid miscalculated APYs and general metrics in the codebase.
XVA-06M: Improper Gain Evaluation
Description:
The gain of the strategy does not factor the loss nor the performance fees applied to the gains.
Example:
Recommendation:
We advise this to be done so to avoid miscalculated APYs and general metrics in the codebase.