When the LiquidityAdded event is emitted in the TSwapPool::_addLiquidityMintAndTransfer function, it logs values in an incorrect order. Specifically, the poolTokensToDeposit value should go in the third parameter position, whereas the wethToDeposit value should go in the second position.
The code currently emits the LiquidityAdded event with the poolTokensToDeposit and wethToDeposit parameters in the wrong order, which can be seen in the following line:
Event emission is incorrect, leading to off-chain functions potentially malfunctioning. This could cause issues for any external systems or scripts relying on the correct order of these event parameters to function properly.
Manual code review
Correct the order of parameters in the event emission to ensure they are logged correctly:
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.