https://github.com/Cyfrin/2024-04-beanstalk-2/blob/27ff8c87c9164c1fbff054be5f22e56f86cdf127/protocol/contracts/libraries/LibEvaluate.sol#L274C5-L299C6
The function is defined to return multiple values (deltaPodDemand, lpToSupplyRatio, podRate, largestLiqWell), but there is no explicit return statement at the end of the function. LibEvaluate::getBeanstalkState returns nothing which has undesirable effects in other calling functions like evaluateBeanstalk, calcCaseIdandUpdate etc
https://github.com/Cyfrin/2024-04-beanstalk-2/blob/27ff8c87c9164c1fbff054be5f22e56f86cdf127/protocol/contracts/libraries/LibEvaluate.sol#L274C5-L299C6
The function is defined to return multiple values (deltaPodDemand, lpToSupplyRatio, podRate, largestLiqWell), but there is no explicit return statement at the end of the function. LibEvaluate::getBeanstalkState returns nothing which has undesirable effects in other calling functions like evaluateBeanstalk, calcCaseIdandUpdate etc
Function calls from evaluateBeanstalk, calcCaseIdandUpdate will lead to errors which is undersirable consequence.
Manual Review
add this to end of the current code implementation
return (deltaPodDemand, lpToSupplyRatio, podRate, largestLiqWell);
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.