Liquid Staking

Stakelink
DeFiHardhatOracle
50,000 USDC
View results
Submission Details
Severity: low
Invalid

Missing input validation in CommunityVCS::deposit

Summary

In CommnuityVCS::deposit there is a missing check as to whether the _amount input value is 0 or not.

Vulnerability Details

A zero vlaue of _amount can be inputted into the function as there is no restriction on 0 values being inputted.

(, uint256 maxDeposits) = getVaultDepositLimits();
if (maxDeposits > vaultMaxDeposits) {

Impact

Impact: Wasted gas for users

Tools Used

Manual

Recommendations

Implement _amount == 0 checks as input validation.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.