The _convertToShares function uses the current vault balance to calculate shares. An attacker can manipulate the share price for subsequent depositors by directly transferring assets to the vault before the first deposit. This breaks the 1:1 initial ratio assumption and can cause significant precision loss for early depositors, similar to ERC4626 inflation attacks.
Early depositors receive significantly fewer shares than expected, leading to unfair distribution of winnings.
An attacker can grief the system by making shares extremely expensive, potentially causing rounding to zero for small deposits.
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.