Omniscia 0xPhase Audit
DBV1 Static Analysis Findings
DBV1 Static Analysis Findings
DBV-01S: Data Location Optimizations
Type | Severity | Location |
---|---|---|
Gas Optimization | DBV1.sol:L26, L36, L58, L112 |
Description:
The linked input arguments are set as memory
in external
function(s).
Example:
db/versions/DBV1.sol
25function add(26 bytes32[] memory keys,27 address value28) external override onlyOwner {
Recommendation:
We advise them to be set as calldata
optimizing their read-access gas cost.
Alleviation (3dd3d7bf0c2693b2f9c23bacedfa420393f7ea84):
All referenced input arguments have been set as calldata
, optimizing their read access gas cost and alleviating this exhibit.