Category: Business Logic
The function redeem
lacks dust-amount check
Low Impact
Low Severity
Low Likelihood
Description
Functions deposit
and mint
check whether the amount of shares to be minted is greater than the DUST
amount, and the function withdraw
checks whether the amount of shares to be burned is greater than the DUST
amount. However, the function redeem
does not perform this check.
Impact
When a user redeems a dust amount of shares, they may receive zero assets, resulting in a loss of funds.
Recommendations
Add a check in the function redeem
to ensure that the amount of shares is greater than DUST
.
Remediation
This issue has been acknowledged by Blueprint Finance, and a fix was implemented in commit 7e38c044↗.