Skip to content

MaxLoopsLimitHelper

This reference matches MaxLoopsLimitHelper in isolated-pools v4.4.0. It is an inherited abstract storage/helper module, not a separately deployed contract.

Abstract contract used to avoid collection with too many items that would generate gas errors and DoS.

Maximum number of items accepted by guarded loops. Solidity generates a public getter for this storage field.

uint256 public maxLoopsLimit

Emitted after the limit is increased.

event MaxLoopsLimitUpdated(uint256 oldMaxLoopsLimit, uint256 newmaxLoopsLimit)

Thrown when a guarded collection is longer than the configured limit.

error MaxLoopsLimitExceeded(uint256 loopsLimit, uint256 requiredLoops)

Increases the limit. The call reverts unless limit > maxLoopsLimit; it cannot reduce the value.

function _setMaxLoopsLimit(uint256 limit) internal

Reverts with MaxLoopsLimitExceeded(maxLoopsLimit, len) when len exceeds the configured limit.

function _ensureMaxLoops(uint256 len) internal view