You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In harvest(), the return values governancePerformanceFee and strategistPerformanceFee from calling _processRewardsFees() are unused. Their declarations are therefore redundant.
They can also be removed from _processRewardsFees()
Recommended Mitigation Steps
// in harvest()functionharvest()publicwhenNotPausedreturns(uint256harvested){
...
// Because we are using bCVX we take fees in reward//NOTE: This will probably revert because we deposit and transfer on same block_processRewardsFees(earnedReward,reward);
...
}// Note the removal of governanceRewardsFee and strategistRewardsFeefunction_processRewardsFees(uint256_amount,address_token)internal{// process governance fee_processFee(_token,_amount,performanceFeeGovernance,IController(controller).rewards());// process strategist fee_processFee(_token,_amount,performanceFeeStrategist,strategist);}
The text was updated successfully, but these errors were encountered:
Handle
hickuphh3
Vulnerability details
Impact
In
harvest()
, the return valuesgovernancePerformanceFee
andstrategistPerformanceFee
from calling_processRewardsFees()
are unused. Their declarations are therefore redundant.They can also be removed from
_processRewardsFees()
Recommended Mitigation Steps
The text was updated successfully, but these errors were encountered: