The function TSwapPool::swapExactInput
specified its return variable as output
but it is not referred anywhere within the function. This will result a default value of 0 being returned, affecting any offchain system that relies on this return value that could further lead to wrong information being rendered to user.
The return variable output
specified in function TSwapPool::swapExactInput
is not defined in the function. Returning an undefined uint256 variable will always result a zero value, giving out wrong information. The most relevant variable that the function should return is named as outputAmount
. This would render a calculated output amount that fits the function intended return value.
User will get a wrong output information following the incorrect return variable implemented by TSwapPool::swapExactInput
Manual review
Make correction to the output variable 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.