Attacker donate tokens to inflate the value of poolToken in the pool, liquidity provider must provide more tokens to get the same LP.
The function that calculate required amount of tokens to deposit does not account for donations, this cause the protocol to ask users to send more tokens to get the same LP tokens amount.
Extra cost for liquidity providers
Unit test
Cache the poolTokens reserve in the contract and update it after 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.