Missing check for mismatched array lengths
The _rewardTokens and _rewardTokenAmounts input arrays having different lengths might cause the loop iteration over _rewardTokens to go out of bounds when accessing _rewardTokenAmounts
This can lead to an inconsistency where one array is exhausted while the other still has elements possibly causing errors
VS Code
The following code will revert the function execution if the lengths are different:
require(_rewardTokens.length == _rewardTokenAmounts.length, "Mismatched arrays");
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.