Initial deposit can be frontrun by attacker and deposit some amount of weth and zero amount of poolToken, this is going to break the pool and users cannot swap or withdraw
The deposit function does not care if the initial depositor is depositing any amount of poolToken.
Any operation on the pool (swap, withdraw) will fail if the poolToken reserve is zero.
But liquidity providers can still provide liquidity which is going to be locked in the pool.
Pool not usable.
Liquidity is locked in the pool.
Unit test.
In the initial deposit, check if the deposited amounts are not zero.
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.