https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/reward/ChefIncentivesController.sol#L318-L334
Also, see the _massUpdatePools() function that calls:
https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/reward/ChefIncentivesController.sol#L452-L462
The functions iterate through all pools to update their states. As the number of pools grows (which is expected as protocol scales), these functions may require gas that exceeds the block gas limit, rendering them unusable.
QA, since this relies on the protocol heavily scaling and having pools to the extent where the functions fail due to OOG.
Consider handling a fixed number of updates per transaction.
