deposit function.The deposit function in the briVault contract allows users to deposit ERC20 tokens, then mints shares to the users. The rate at which shares are minted can change rapidly. Normally, there should be a minimum amount of shares a user is willing to receive when they deposit a certain amount of tokens to protect them from volatile conversion rate changes.
The deposit function lacks this slippage protection in case of volatile conversion rate changes, any conversion rate change can change the token ratio users expected and cause possible losses for users.
Likelihood:
Coversion rate frequently changes between signing and execution.
Impact:
Users can receive less shares than expected.
Implement slippage protection where a user inputs a minimum amount of shares they can receive.
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.