Introduction
We express our gratitude to the NOTLD team for the collaborative engagement that enabled the execution of this Smart Contract Security Assessment.
The NOTLD contract is an ERC-20 token with the symbol "NOTLD" and an initial supply of 1 billion tokens, all minted to the deployer's address upon contract creation. It integrates with OpenZeppelin's ERC-20 and ERC-20 Permit extensions to provide standard token functionality and permit-based approvals, which allow for gasless transactions.
Document | |
|---|---|
| Name | Smart Contract Code Review and Security Analysis Report for NOTLD |
| Audited By | Przemyslaw Swiatowiec |
| Approved By | Grzegorz Trawinski |
| Website | https://nightofthelivingdead.xyz/→ |
| Changelog | 16/07/2024 - Preliminary Report, 16/07/2024 - Final Report |
| Platform | Ethereum |
| Language | Solidity |
| Tags | ERC20, ERC20Permit |
| Methodology | https://hackenio.cc/sc_methodology→ |
Document
- Name
- Smart Contract Code Review and Security Analysis Report for NOTLD
- Audited By
- Przemyslaw Swiatowiec
- Approved By
- Grzegorz Trawinski
- Changelog
- 16/07/2024 - Preliminary Report, 16/07/2024 - Final Report
- Platform
- Ethereum
- Language
- Solidity
- Tags
- ERC20, ERC20Permit
- Methodology
- https://hackenio.cc/sc_methodology→
Review Scope | |
|---|---|
| Repository | https://github.com/notldgame/NOTLD-Token→ |
| Commit | 5bcfb8 |
Review Scope
- Commit
- 5bcfb8
Audit Summary
The system users should acknowledge all the risks summed up in the risks section of the report
Documentation quality
Functional requirements are provided.
Technical description is provided.
Code quality
F-2024-4311 - Unnecessary Payable Constructor
Test coverage
No tests were provided, however, the contract inherits all the behavior from well-tested Open-Zeppelin libraries.
System Overview
The NOTLD contract is an ERC-20 token with the symbol "NOTLD" and an initial supply of 1 billion tokens, all minted to the deployer's address upon contract creation. It integrates with OpenZeppelin's ERC-20 and ERC-20 Permit extensions to provide standard token functionality and permit-based approvals, which allow for gasless transactions.
It has the following attributes:
Name: NOTLD
Symbol: NOTLD
Decimals: 18
Total supply: 1 billion tokens
Privileged roles
No roles are defined. All token supply is minted and transferred to the token creator during contract initialization.
Risks
No additional risks were found.
Findings
Code ― | Title | Status | Severity | |
|---|---|---|---|---|
| F-2024-4311 | Unnecessary Payable Constructor | accepted | Observation |
Appendix 1. Severity Definitions
When auditing smart contracts, Hacken is using a risk-based approach that considers Likelihood, Impact, Exploitability and Complexity metrics to evaluate findings and score severities.
Reference on how risk scoring is done is available through the repository in our Github organization:
Severity | Description |
|---|---|
Critical | Critical vulnerabilities are usually straightforward to exploit and can lead to the loss of user funds or contract state manipulation. |
High | High vulnerabilities are usually harder to exploit, requiring specific conditions, or have a more limited scope, but can still lead to the loss of user funds or contract state manipulation. |
Medium | Medium vulnerabilities are usually limited to state manipulations and, in most cases, cannot lead to asset loss. Contradictions and requirements violations. Major deviations from best practices are also in this category. |
Low | Major deviations from best practices or major Gas inefficiency. These issues will not have a significant impact on code execution, do not affect security score but can affect code quality score. |
Severity
- Critical
Description
- Critical vulnerabilities are usually straightforward to exploit and can lead to the loss of user funds or contract state manipulation.
Severity
- High
Description
- High vulnerabilities are usually harder to exploit, requiring specific conditions, or have a more limited scope, but can still lead to the loss of user funds or contract state manipulation.
Severity
- Medium
Description
- Medium vulnerabilities are usually limited to state manipulations and, in most cases, cannot lead to asset loss. Contradictions and requirements violations. Major deviations from best practices are also in this category.
Severity
- Low
Description
- Major deviations from best practices or major Gas inefficiency. These issues will not have a significant impact on code execution, do not affect security score but can affect code quality score.
Appendix 2. Scope
The scope of the project includes the following smart contracts from the provided repository:
Scope Details | |
|---|---|
| Repository | https://github.com/notldgame/NOTLD-Token→ |
| Commit | 5bcfb88d1decbea82782e1c29fce89be97908a2b |
| Whitepaper | README |
| Requirements | README |
| Technical Requirements | README |
Scope Details
- Commit
- 5bcfb88d1decbea82782e1c29fce89be97908a2b
- Whitepaper
- README
- Requirements
- README
- Technical Requirements
- README