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.
Solidity API
Section titled “Solidity API”maxLoopsLimit
Section titled “maxLoopsLimit”Maximum number of items accepted by guarded loops. Solidity generates a public getter for this storage field.
uint256 public maxLoopsLimitMaxLoopsLimitUpdated
Section titled “MaxLoopsLimitUpdated”Emitted after the limit is increased.
event MaxLoopsLimitUpdated(uint256 oldMaxLoopsLimit, uint256 newmaxLoopsLimit)MaxLoopsLimitExceeded
Section titled “MaxLoopsLimitExceeded”Thrown when a guarded collection is longer than the configured limit.
error MaxLoopsLimitExceeded(uint256 loopsLimit, uint256 requiredLoops)_setMaxLoopsLimit
Section titled “_setMaxLoopsLimit”Increases the limit. The call reverts unless limit > maxLoopsLimit; it cannot reduce the value.
function _setMaxLoopsLimit(uint256 limit) internal_ensureMaxLoops
Section titled “_ensureMaxLoops”Reverts with MaxLoopsLimitExceeded(maxLoopsLimit, len) when len exceeds the configured limit.
function _ensureMaxLoops(uint256 len) internal view