Every call to sellProfits function in Fee.sol can be front-runned because amountOutMinimum
is set to 0.
Using amountOutMinimum
= 0 tells the swap that the caller will accept a minimum amount of 0 output tokens from the swap. If someone spots this configuration it is easy for him to create a MEV bot to front-run every transaction. This could lead to a significant loss in percentage terms because there is no slippage protection at all.
Loss of funds.
Manual review.
amountOutMinimum
value should be calculated using an oracle.
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.