Skip to content

Commit

Permalink
Merge branch 'misc-protocol-fixes' of https://github.com/BeanstalkFar…
Browse files Browse the repository at this point in the history
…ms/Beanstalk into misc-protocol-fixes
  • Loading branch information
nickkatsios committed Sep 26, 2024
2 parents fa757ca + 33562a3 commit 366678d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions protocol/contracts/libraries/LibEvaluate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,8 @@ library LibEvaluate {
function evaluateBeanstalk(int256 deltaB, uint256 beanSupply) external returns (uint256, bool) {
BeanstalkState memory bs = updateAndGetBeanstalkState(beanSupply);
uint256 caseId = evalPodRate(bs.podRate) // Evaluate Pod Rate
.add(evalPrice(deltaB, bs.largestLiqWell)) // Evaluate Price
.add(evalDeltaPodDemand(bs.deltaPodDemand)) // Evaluate Delta Soil Demand
.add(evalLpToSupplyRatio(bs.lpToSupplyRatio)); // Evaluate LP to Supply Ratio
.add(evalPrice(deltaB, bs.largestLiqWell)) // Evaluate Price
.add(evalDeltaPodDemand(bs.deltaPodDemand)).add(evalLpToSupplyRatio(bs.lpToSupplyRatio)); // Evaluate Delta Soil Demand // Evaluate LP to Supply Ratio
return (caseId, bs.oracleFailure);
}

Expand Down

0 comments on commit 366678d

Please sign in to comment.