Omniscia Steer Protocol Audit

GaussianPosition Static Analysis Findings

GaussianPosition Static Analysis Findings

GPN-01S: Inexistent Visibility Specifiers

TypeSeverityLocation
Code StyleGaussianPosition.sol:
I-1: L19
I-2: L20
I-3: L21

Description:

The linked variables have no visibility specifier explicitly set.

Example:

src/GaussianPosition.sol
19uint256 constant PRECISION = 1e18;

Recommendation:

We advise them 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:

The internal visibility specifier has been introduced to all referenced variables, preventing potential compilation discrepancies and addressing this exhibit.