Omniscia DAFI Audit

PriceFeeds Code Style Findings

PriceFeeds Code Style Findings

PFS-01C: Variable Mutability Specifier

Description:

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

Example:

contracts/network
19constructor(address aggregator) {
20 priceFeed = AggregatorV3Interface(aggregator);
21}

Recommendation:

We advise it to be set as immutable greatly optimizing the contract's gas cost.

Alleviation:

The variable was properly set to immutable greatly optimizing the codebase.