accessing storage in a loop, for example, _feeReceivers length can be extracted into a variable and used where necessary to reduce the number of storage reads.
Recommended Mitigation Steps
change this:
for (uint256 i = 0; i < _feeReceivers.length; i++) {
to this:
uint256 feeReceiversLength = _feeReceivers.length;
for (uint256 i = 0; i < feeReceiversLength; i++) {
Handle
paulius.eth
Vulnerability details
Impact
accessing storage in a loop, for example, _feeReceivers length can be extracted into a variable and used where necessary to reduce the number of storage reads.
Recommended Mitigation Steps
change this: for (uint256 i = 0; i < _feeReceivers.length; i++) { to this: uint256 feeReceiversLength = _feeReceivers.length; for (uint256 i = 0; i < feeReceiversLength; i++) {