Omniscia Platypus Finance Audit
TokenVesting Code Style Findings
TokenVesting Code Style Findings
TVG-01C: Redundant User-Defined Getters
| Type | Severity | Location |
|---|---|---|
| Code Style | Informational | TokenVesting.sol:L101-L155 |
Description:
The linked getter functions yield an internal / private variable of the same name with an underscore (_) prefix.
Example:
contracts/vesting/TokenVesting.sol
101/**102 * @return the beneficiary of the tokens.103 */104function beneficiary() public view returns (address) {105 return _beneficiary;106}Recommendation:
We advise the variables to be renamed sans the underscore and set as public to create compiler-generated getter functions for them instead.
Alleviation:
The Platypus team considered this exhibit but opted not to apply a remediation for it.