Omniscia Sovryn Audit
SideToken Static Analysis Findings
SideToken Static Analysis Findings
STN-01S: Redundant User-Defined Getter
| Type | Severity | Location |
|---|---|---|
| Code Style | Informational | SideToken.sol:L12, L57-L59 |
Description:
The granularity user defined getter is yielding the _granularity private state variable.
Example:
sovryn-token-bridge/bridge/contracts/SideToken.sol
57function granularity() public view returns (uint256) {58 return _granularity;59}Recommendation:
We advise the user-defined getter to be omitted, the variable to be renamed without the underscore (_) prefix and it to be declared as public.
Alleviation:
The development team has acknowledged this exhibit but decided to not apply its remediation in the current version of the codebase.