Description: The swapExactOutput
function does not include any sort of 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
Impact: If market conditions change before the transaction processes, the user could get a much worse swap and end sending more input tokens for the same exact ouput which could have been swapped with relatively less input tokens.
Proof of Concept:
Recommended Mitigation: 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.