The deposit function accepts a deadline parameter, which according to the natspec is "The deadline for the transaction to be completed by". However, this parameter is never used. As a consequence, operations that add liquidity to the pool might be executed at unexpected times, in market conditions where the deposit rate is unfavorable.
The deadline
parameter is unused. Transactions could be sent when market conditions are unfavorable (due to a MEV attack or regular usage) to deposit, even when adding a deadline parameter.
Include this test in TSwapPool.t.sol
:
Foundry and manual review
Consider making the following change to the function.
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.