The doc describes that Sun::stepSun
should decrease the soil supply logarithmically when deltaB >= 0 but the contract only decreases the supply soil when delta > 0 which means when deltaB is equal to 0 it is not decreasing the soil logarithmically as described.
When P ≥ 1 (i.e., deltaB ≥ 0), the Soil supply decreases logarithmically at the beginning of each block in the Morning. When P < 1 (i.e., deltaB < 0), Beanstalk sets the Soil supply to deltaB. See the Soil Supply section.
Vulnerable code:
Soil supply should decrease as the deltaB reaches 0 to maintain the peg of the stable coin.
Contract fails to deliver promised return.
Manual Review
Change the following code:
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.