Omniscia AllianceBlock Audit

Multicall2 Static Analysis Findings

Multicall2 Static Analysis Findings

M2L-01S: Potentially Misleading Getter Function

Description:

The paris EVM version no longer supports a "difficulty" opcode and instead will yield a pseudo-random value in its place, meaning that the Multicall2::getCurrentBlockDifficulty function is slightly misleading.

Example:

contracts/Multicall2.sol
39function getCurrentBlockDifficulty() public view returns (uint256 difficulty) {
40 difficulty = block.difficulty;
41}

Recommendation:

We advise the code to be updated, either renaming the function or omitting it. We consider either of the two remediations as appropriate for this exhibit.

Alleviation (54fd570de24631ca65a7cea022aebe43225a08c7):

The referenced getter function has been omitted as a result, addressing this exhibit.