sellProfits is vulnerable to sandwich attack
There's a permissionless function sellProfits in Fees.sol. Since everyone can trigger this function, an attacker can launch a sandwich attack to steal the funds.
Following code tells the swap that the contract will accept a minimum amount of 0 output tokens from the swap, opening up the contract to a catastrophic loss of funds via MEV bot sandwich attacks.
Rewards can be lost
Manual Review
Restrict the sellProfits function and allow owner to specify slippage. Also add a check that swapped amount is not less than amountOutMinimum
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.