The function convertAccumulatedFeesToWeth
does not validate the minimum output amount during swaps, exposing the protocol to slippage and sandwich attacks.
The function performs swaps without checking if the output meets a minimum threshold.
This could result in significant value loss due to slippage or sandwich attacks.
javascript
Potential loss of value when converting accumulated fees to WETH, especially in volatile or low liquidity market conditions.
Manual code review
Implement minimum output amount checks to guard against unfavorable slippage.
Consider using a slippage tolerance parameter.
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.