Omniscia Seen Haus Audit

InterfaceInfo Code Style Findings

InterfaceInfo Code Style Findings

IIO-01C: Interface ID Optimization

TypeSeverityLocation
Gas OptimizationInformationalInterfaceInfo.sol:L44-L162

Description:

The InterfaceInfo contract implements a dedicated pure function for each interface ID it is meant to yield.

Example:

contracts/util/InterfaceInfo.sol
44function getIAuctionBuilder()
45public pure
46returns(bytes4 id) {
47 id = type(IAuctionBuilder).interfaceId;
48}

Recommendation:

We advise it to instead utilize constant variables as they would be more gas optimal.

Alleviation:

The Seen Haus team stated that this file is solely used within tests and as such no remediation will be carried out.