The Standard

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

distributeAssets could lead to DOSed liquidation due to growing holders

Summary

Distribution of Assets could DoS due to growing arrays of holders/stakers.

Vulnerability Details

distributeAssets() loops through all the available users in other to record their portion for rewards during liquidation, the issue is that size of holders is dynamic and used through a nested for loop, this could hit the block size limit or OOG exception.

Impact

Liquidation could be DoSed and vaults would not be liquidated.

Tools Used

Manual Review

Recommendations

consider distributing assets in batches or change the implementation to checkpoint user rewards

Updates

Lead Judging Commences

hrishibhat Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

informational/invalid

Support

FAQs

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