stake.link

stake.link
DeFiHardhatBridge
27,500 USDC
View results
Submission Details
Severity: high
Invalid

Gas Limit and Loops:

Summary

Gas Limit and Loops: The _ccipReceive function contains a loop that iterates over an array of token amounts. If this array is large, it could lead to high gas costs or even exceed block gas limits.

Vulnerability Details

for (uint256 i = 0; i < numRewardTokens; ++i) {
rewardTokens[i] = _message.destTokenAmounts[i].token;
IERC20(rewardTokens[i]).safeTransfer(sdlPool, _message.destTokenAmounts[i].amount);
}

Impact

If this array is large, it could lead to high gas costs or even exceed block gas limits.

Tools Used

Recommendations

Updates

Lead Judging Commences

0kage Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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