The condition minOut > _amount
may lead to a Denial-of-Service (DoS) scenario due to external price manipulation, such as a sandwich attack or price imbalance caused by liquidity fluctuations or an asset depegging.
At Genesis, If the swap involves assets with low liquidity, it is vulnerable to price manipulation. An attacker could front-run this transaction to profit from price movement, especially if the minOut
the parameter is too lenient.
Denial of Service of the _swapUnderlyingToAsset function, which other contract functions rely on.
Manual review.
Recommendation: Use a price oracle to validate minOut
against a realistic minimum value based on the actual market rate with some slippage tolerance. Example:
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.