Improper slippage handling in Fees.sol
may lead to loss of funds for the protocol and users.
The sellProfits
function in Fees.sol
swaps tokens to WETH and then transfers to staking contract. The slippage variable amountOutMin
for the swap params is set to 0 meaning that the returned WETH amount from the swap could be 0 for a non zero amountIn.
The protocol would lose funds which should be used in the Staking contract as rewards. This may also lead to users not receiving rewards for their stake.
Calculate a minAmountOut value to be used in the swap instead of using 0.
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.