Liquid Staking

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

Limit Number Of Strategies

Summary

Currently the StakingPoolcan have as much as possible strategies, but if the number of strategies grows to a high number, some operations such as _updateStrategyRewardcould consume a lot of gas or even revert in some situation.

Impact

In _updateStrategyReward if the number of strategies grows, during the execution the method will iterate through all of the strategies and all receivers. This will consume a significant amount of gas.

Tools Used

Manual review

Recommendations

Limit the number of strategies per staking pool.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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