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
function withdrawAll in BaseStrategy declares 'returns (uint256 balance)', however, no actual value is returned. function reinvest in MyStrategy declares to return 'uint256 reinvested', however, it also actually does not return anything so they always get assigned a default value of 0.
Recommended Mitigation Steps
Either remove the return declarations or return the intended values. Otherwise, it may confuse other protocols that later may want to integrate with you.
The text was updated successfully, but these errors were encountered:
Handle
pauliax
Vulnerability details
Impact
function withdrawAll in BaseStrategy declares 'returns (uint256 balance)', however, no actual value is returned. function reinvest in MyStrategy declares to return 'uint256 reinvested', however, it also actually does not return anything so they always get assigned a default value of 0.
Recommended Mitigation Steps
Either remove the return declarations or return the intended values. Otherwise, it may confuse other protocols that later may want to integrate with you.
The text was updated successfully, but these errors were encountered: