Attacker can manipulate share price by being first depositor with minimal amount, then donating large amount of asset tokens directly
Likelihood: Low
The protocol has a minimum amount of deposit, so this attack only feasible if attacker has a large amount of asset token and can manage to be the first depositor
Impact:
Subsequent depositors get 0 shares due to rounding
Add this setup to setUp() function in briVault.t.sol
Then add this test case
The minimum deposit amount requirement partially fix this issue
Protocol could be the first depositor and deposit enough assets into the vault such that doing this attack would be too expensive
Or adding virtual liquidity to _convertToShares() logic
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.