In TSwapPool::swapExactOutput
, there is no input parameter like maxInputAmount
that user can specify to enable a slippage protection within the function. This could cause user to pay unexpectedly high amount of input token to exchange for a specified output token
The function TSwapPool::swapExactOutput
does not have any input parameter and check to limit the maximum input amount to protect user from paying a high amount of input token unexpectedly when market conditions are turbulent. In comparison to a similar function TSwapPool::swapExactInput
, the function does provide slippage protection through minOutputAmount
. The protocol should implement the same slippage protection for TSwapPool::swapExactOutput
as well by enabling the protection with maxInputAmount
User could potentially pay an unexpectedly high input amount in exchange for a specified output token especially when market conditions are turbulent
Manual review
Implement slippage protection via maxInputAmount
in TSwapPool::swapExactOutput
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.