The function swapExactInput does not assign a value to the return variable, it will always return zero.
Protocol user will get wrong value of how much did he receive when swapping using swapExactInput.
sloc
Here assign the value to the output variable instead of creating new one
https://github.com/agent3bood/2024-06-t-swap/blob/main/src/TSwapPool.sol#L311
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.