Omniscia Swisscoast Audit
BorrowerOperations Code Style Findings
BorrowerOperations Code Style Findings
BOS-01C: Redundant Duplicate Member
Type | Severity | Location |
---|---|---|
Gas Optimization | BorrowerOperations.sol:L135, L136 |
Description:
The BorrowerOperations
contract contains two members containing the same data point.
Example:
packages/contracts/contracts/BorrowerOperations.sol
135gasPoolAddress = _gasPoolAddress;136gasPool = IGasPool(_gasPoolAddress);
Recommendation:
We advise only the gasPool
member to remain, optimizing the code's gas cost.
Alleviation (04618e407bddce5b22e9cadd787fd3334bd3afe6):
The gasPoolAddress
member has been safely omitted per our recommendation, optimizing the code's gas cost.