Omniscia Bluejay Finance Audit
StabilizingBondDepository Code Style Findings
StabilizingBondDepository Code Style Findings
SBD-01C: Inexistent Visibility Specifiers
Type | Severity | Location |
---|---|---|
Code Style | StabilizingBondDepository.sol:L29-L31 |
Description:
The linked variables have no visibility specifiers explicitly set.
Example:
packages/contracts/contracts/StabilizingBondDepository.sol
29uint256 constant WAD = 10**18;30uint256 constant RAY = 10**27;31uint256 constant RAD = 10**45;
Recommendation:
We advise them to be set 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:
The private
visibility specifier has been introduced for all referenced variables.