The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

SmartVaultManagerV5::vaults returns vault information that is not specific to vault, this can be misleading

Summary

SmartVaultManagerV5::vaults function is returning SmartVaultData() for each of the vaults owned by the caller. But, in reality, the values being return are state level variables of SmartVaultManagerV5.

example: All the three variable returned as part of SmartVaultData is not specific to the vault, but instead are values configured in SmartVaultManager.

  1. collateralRate

  2. mintFeeRate

  3. burnFeeRate

Vulnerability Details

The read looks like specific variables for each vault, but instead they are same across all vaults. So, it is better to render and return as common variables
instead of values specific to each vault.

Impact

None

Tools Used

Manual Review

Recommendations

Render them as config variables that are shared across all vaults instead of illustrating as vault specific values.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

informational/invalid

Support

FAQs

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