Incorrect calculation in getInputAmountBasedOnOutput()
In getInputAmountBasedOnOutput(), we will calculate the input amount based on the exact output. The vulnerability is that the calculation is wrong, should be 1000, not 10000.
Users have to pay more input amount than expected. If users set the proper slippage, this transaction is quite probable to be reverted.
Manual
Revisit the calculation , change 10000
to 1000
.
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.