Omniscia fetchai Audit
DebtCashIn Static Analysis Findings
DebtCashIn Static Analysis Findings
DCI-01S: Redundant Visibility Specifiers
| Type | Severity | Location |
|---|---|---|
| Gas Optimization | Informational | DebtCashIn.sol:L102, L105 |
Description:
The linked variables are meant to be system constants yet are exposed publicly via the public visibility specifier.
Example:
contracts/ALP/DebtCashIn.sol
101/// @notice number of decimal places we support102uint256 public constant DECIMALS = 18;103
104/// @notice integer representation of one105uint256 public constant ONE_UNIT = 10**DECIMALS;Recommendation:
We advise them to be set as internal greatly reducing the generated bytecode of the contract.
Alleviation:
The Atomix team has stated that they wish the DECIMALS member to remain exposed to conduct proper checks in future upgrades of the protocol, however, the other variables have been set to internal properly.