Wrong calculation in TSwapPool::getInputAmountBasedOnOutput
causes the return value much larger than the actual value, resulting user is overly charged by 10 fold
The return value calculation in TSwapPool::getInputAmountBasedOnOutput
was wrongly multiplied with 10_000
, which in fact it should be multiplied as 1_000
User is overly charged by 10 fold due to the wrong multiplication value of 10_000
instead of 1_000
Manual review
Make correction to the function TSwapPool::getInputAmountBasedOnOutput
as follows:
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.