This document is a security audit report performed by RideSolo, where BNC Token has been reviewed.
This contract is an ERC20 compliant Token.
- Bionic.sol github commit hash 9af817cd179ad9dd46834ab8db485083e9b159e9.
2 issues were reported including:
-
1 medium severity issues.
-
1 low severity issues.
Bionic Token do not require the to
address to be non null before transfer
. Accidental token loss to address 0x0 can be applicable.
The version of ERC20 used in this contract, use a basic burn mechanism where anyone can send tokens to 0x0 address. However, this mechanism leads to the above mentioned issue.
Refer to ERC20 Standard implemented by OpenZepplin, to avoid this issue.
ERC20 Tokens have some well-known issues (listed bellow), This is just a reminder for the contract developers.
- Approve + transferFrom mechanism allows double Withdrawal attack (as commented on the contract).
- Lack of transaction handling.
The above mentioned issues are well documented, a basic search can help to get more information.
This contract can be considered safe to be deployed. However, as highlighted users can accidentally send their tokens to 0x0 address.