Wrong value of numerator in TSwapPool::getInputAmountBasedOnOutput
The function TSwapPool::getInputAmountBasedOnOutput
uses the value of 10000
in it's numerator but it must use 1000
instead.
By doing that it will use the 0.3 % fee which is represented in this case by doing 997 / 1000
in the function calculations
The method miscalculates fee which makes all methods that rely on it not giving the expected output.
Manual Review
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.