The user could get a much worse swap if market conditions change before the transaction processes.
The swapExactOutput function does not include any slippage protection. This function is similar to what is done in TSwapPool::swapExactInput, where the function specifies a minOutputAmount, the swapExactOutput function should specify a maxInputAmount
POC:
The user could get a much worse swap if market conditions change before the transaction processes.
Manual review
We should include a maxInputAmount so the user only has to spend up to a specific amount, and can predict how much they will spend on the protocol.
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.