Omniscia Maverick Protocol Audit

TransferLib Code Style Findings

TransferLib Code Style Findings

TLB-01C: Redundant Unchecked Code Block

Description:

The referenced unchecked code block does not mutate the underlying generated operations of the if-revert statement as no mathematical operations are involved.

Example:

v2-common/contracts/libraries/TransferLib.sol
49unchecked {
50 if (!success) revert TransferFailed(token, to, amount);
51}

Recommendation:

We advise the unchecked code block to be omitted, optimizing the code's legibility.

Alleviation (175f8c39b19df69134add3aa8a2a042ce3047763):

The redundant unchecked code block has been properly omitted, increasing the code's legibility.