Omniscia Tokemak Network Audit
TokeMigrationPool Static Analysis Findings
TokeMigrationPool Static Analysis Findings
TMP-01S: Hard-Coded Value Literal
Type | Severity | Location |
---|---|---|
Code Style | Informational | TokeMigrationPool.sol:L124 |
Description:
The linked literal is hard-coded to the contract's code.
Example:
contracts/pools/TokeMigrationPool.sol
123function withdrawAndMigrate() external whenNotPaused nonReentrant {124 address stakingContract = 0x96F98Ed74639689C3A11daf38ef86E59F43417D3;
Recommendation:
We advise it to be set as a contract-level constant
to increase the legibility of the codebase as well as maintainability of it.
Alleviation:
The STAKING
contract-level constant
is now being utilized in its place.