First deposit can be frontrun, which cause it to revert.
By front running the first deposit and then donating just one weth to the pool, you can prevent the depositor from getting the expected amount of LP tokens.
High, user will get less LP tokens than expected.
unit test
Any of bellow
Only allow certain user to do the initial deposit.
Do not use the weth.balanceOf(pool)
and token.balanceOf(pool)
when calculating reserves, instead store the values in the contract and use it in deposit()
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.