DeFiHardhatOracleProxyUpdates
100,000 USDC
View results
Submission Details
Severity: low
Invalid

Inconsistent state checks in LibLegacyTokenSilo::removeDepositFromAccount

Summary

The function checks if amount > crateAmount to decide whether to migrate legacy deposits. However, it proceeds to remove the legacy deposit regardless of whether the new calculated crateAmount and crateBDV are sufficient to cover the amount requested for removal. This could potentially lead to a state where deposits are removed even if they don't fully cover the amount,

Vulnerability Details

The function checks if amount > crateAmount to decide whether to migrate legacy deposits. However, it proceeds to remove the legacy deposit regardless of whether the new calculated crateAmount and crateBDV are sufficient to cover the amount requested for removal. This could potentially lead to a state where deposits are removed even if they don't fully cover the amount,

Impact

medium

Tools Used

Manual Review

Recommendations

check and make sure the the caller is the owner of the deposit

Updates

Lead Judging Commences

giovannidisiena Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

Informational/Invalid

Support

FAQs

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