The protocol allows users to deposit tokens to the protocol and mint shares to the users in return. users are allowed to deposit tokens and mints RToken shares in return:
Similarly, when minting DebtTokens for borrowed amounts:
If the minted amount is 0, the user effectively loses their deposit without getting any shares.
currently there is no way users can protect themselves from slippage issues, which means users have to deposit and trust that the protocol will mint the right shares.
Additionally when carrying out the minting operation the protocol never reverts shares to be minted are 0
Loss of funds
Add a slippage protection mechanism
Allow users to specify a minimum shares expected, and revert if they receive less.
Enforce a minimum share check
If after minting the amount minted is 0, the function should revert.
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.