In Fees.sol there is no slippage protection for swapping _profits tokens to WETH
The amountOutMinimum parameter used when swapping from _profits to WETH in the exactInputSingle function protects from a bad trade caused by price manipulation. In the sellProfits function the value is hardcoded to 0 which puts the protocol at risk of a malicious user performing a sandwich attack, reducing the amount of WETH the protocol is expected to receive in return for the _profits tokens.
In such a case, the contract would receive significantly less WETH for the swap, leading to a major loss of funds.
Manual review
Input a reasonable value for amountOutMinimum in order to protect from sandwich attacks.
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.