Donating weth to the pool will cause liquidity providers getting less than expected LP tokens.
The attack is on this formula which calculate how much LP to mint to the liquidity provider, it is as simple as donating weth, the more the attacker the less LP tokens will be minted to the liquidity providers.
High, liquidity providers are getting less LP tokens that what should be.
Unit test.
Store the weth reserves in the contract and use it to calculate liquidityTokensToMint
, the weth reserve value can be updated 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.