|
uint256 public constant TOTAL_SUPPLY = 1400000000 * (10 ** 18); // 1.4 billion SPO |
We recommend avoiding the use of magic numbers, using a variable here would improve readability and make the code more maintainable for the future.
e.g1 add uint256 public constant ONE_TOKEN = 10 ** 18; and then replace all the 10 ** 18 with ONE_TOKEN
e.g2 add uint256 public constant ONE_MILLION = 10 ** 24; and then carefully replace those numbers with new numbers (for instance, 1400000000 * 10 ** 18 becomes 1400 * ONE_MILLION)
Sparrowex-spo-audit/contracts/SPO.sol
Line 13 in 7793e44
We recommend avoiding the use of magic numbers, using a variable here would improve readability and make the code more maintainable for the future.
e.g1 add
uint256 public constant ONE_TOKEN = 10 ** 18;and then replace all the10 ** 18withONE_TOKENe.g2 add
uint256 public constant ONE_MILLION = 10 ** 24;and then carefully replace those numbers with new numbers (for instance,1400000000 * 10 ** 18becomes1400 * ONE_MILLION)