deadline set to almost infinity does not provide protection
swaps could be executed during unfavorable conditions since functions uses type(uint256).max
as deadline.
https://github.com/Cyfrin/2024-02-Beanstalk-1/blob/main/protocol/contracts/beanstalk/sun/SeasonFacet/Weather.sol#L209
swap provides no deadline since it's set to almost infinity, deadline is used by AMM to prevent users from performing harmful swaps operation, especially during times of volatile market.
Users swap can be executed during unfavorable times
Manual Review
Allow the caller to set a favorable deadline.
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.