Liquid Staking

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

Continuously growing ```withdrawalBatches``` might break WithdrawalPool contract.

Summary

Vulnerability Details

Lines of impacted code:

WithdrawalBatch[] internal withdrawalBatches; is a dynamic array which only grows during the lifetime of withdrawal pool contract. At this moment there is no way to remove items from this list. If grown in significant size it might be difficult to traverse through or retrieve items from this list. It might break multiple private/public functions including updateWithdrawalBatchIdCutoff.

Impact

Continuously growing withdrawalBatches might break WithdrawalPool contract.

Tools Used

Recommendations

Have a mechanism to put a hard cap on withdrawalBatches and delete items from withdrawalBatches.

Updates

Lead Judging Commences

inallhonesty Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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