Omniscia Powercity Audit
LUSDToken Code Style Findings
LUSDToken Code Style Findings
LUS-01C: Improper Naming Convention
Type | Severity | Location |
---|---|---|
Code Style | LUSDToken.sol:L27, L31, L32 |
Description:
The LUSDToken
is meant to represent the PXDC
stablecoin.
Example:
LUSDToken.sol
27contract LUSDToken is CheckContract, ILUSDToken {28 using SafeMath for uint256;29 30 uint256 private _totalSupply;31 string constant internal _NAME = "PXDC Stablecoin";32 string constant internal _SYMBOL = "PXDC";33 string constant internal _VERSION = "1";34 uint8 constant internal _DECIMALS = 18;
Recommendation:
We advise it to be aptly renamed throughout the codebase to avoid any potential confusion that may arise.
Alleviation (8bedd3b0df6387957e6b8f5d52507e776c1458b0):
While the contract
was aptly renamed to PXDCToken
, the filename remains the same. We advise it to be adjusted as well to properly reflect the new asset.