Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yuriy77k
Forked from RideSolo/ETH_natmin_v2_audit_report.md
Created November 13, 2018 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuriy77k/76c8ff297165a8fe20925fe22ff221cd to your computer and use it in GitHub Desktop.
Save yuriy77k/76c8ff297165a8fe20925fe22ff221cd to your computer and use it in GitHub Desktop.

NATMIN Token V2 Audit Report.

1. Summary

This document is a security audit report performed by RideSolo, where NATMIN Token V2 has been reviewed.

2. In scope

  • NatminToken.sol github commit hash 34a4bb37eb02ac765850f29bbd13594c3507268f.

3. Findings

2 issues were reported including:

  • 2 low severity issues.

3.1. Transfer Event

Severity: low

Description

In the constructor a token transfer should be emitted when assigning the _totalSupply to the constractOwner to comply with ERC20 requirement.

Code snippet

https://github.com/RideSolo/Token/blob/master/contracts/NatminToken.sol#L116

Recommendation

3.2. Known Issue of ERC20 Standard

Severity: low

Description

This is just a reminder for the contract developers (the described ERC20 issue is well-known and well documented).

It is possible to double withdrawal attack. More details here

Code snippet

https://github.com/RideSolo/Token/blob/master/contracts/NatminToken.sol#L231

https://github.com/RideSolo/Token/blob/master/contracts/NatminToken.sol#L231

4. Conclusion

The contract is safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment