Omniscia Teahouse Finance Audit
TeaVaultV3PairOracle Static Analysis Findings
TeaVaultV3PairOracle Static Analysis Findings
TVP-01S: Inexistent Visibility Specifier
Type | Severity | Location |
---|---|---|
Code Style | TeaVaultV3PairOracle.sol:L29 |
Description:
The linked variable has no visibility specifier explicitly set.
Example:
contracts/oracle/TeaVaultV3PairOracle.sol
29uint8 immutable baseAssetOracleDecimals;
Recommendation:
We advise one to be set so to avoid potential compilation discrepancies in the future as the current behaviour is for the compiler to assign one automatically which may deviate between pragma
versions.
Alleviation (302b96f324a88038a0872015466cd43783c14543):
The private
visibility specifier has been introduced to the referenced variable, preventing potential compilation discrepancies and addressing this exhibit.