Declaring variable inside for loop looks a bit strange too me. And it may create a lot of memories in the stack
uint256 hashedOffset;
uint256 preimageOffset;
for (uint256 i = 0; i < pairs.length; i += 64) {
hashedOffset = i + 32;
preimageOffset = i + 64;
Declaring variable inside for loop looks a bit strange too me. And it may create a lot of memories in the stack uint256 hashedOffset; uint256 preimageOffset; for (uint256 i = 0; i < pairs.length; i += 64) { hashedOffset = i + 32; preimageOffset = i + 64;
}