Omniscia Powercity Audit

TellorCaller Code Style Findings

TellorCaller Code Style Findings

TCR-01C: Variable Mutability Specifier (Immutable)

TypeSeverityLocation
Gas OptimizationTellorCaller.sol:L24

Description:

The linked variable is assigned to only once during the contract's constructor.

Example:

Dependencies/TellorCaller.sol
21ITellor public tellor;
22
23constructor (address _tellorMasterAddress) public {
24 tellor = ITellor(_tellorMasterAddress);
25}

Recommendation:

We advise it to be set as immutable greatly optimizing its read-access gas cost.

Alleviation (8bedd3b0df6387957e6b8f5d52507e776c1458b0):

The referenced variable remains with a suboptimal mutability specifier, rendering this exhibit acknowledged.