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.
for (uint256 i = 0; i < numRewardTokens; ++i) {
rewardTokens[i] = _message.destTokenAmounts[i].token;
IERC20(rewardTokens[i]).safeTransfer(sdlPool, _message.destTokenAmounts[i].amount);
}
If this array is large, it could lead to high gas costs or even exceed block gas limits.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.