CryptoAds smart contract security audit report performed by Callisto Security Audit Department
No critical issue, bug fixing is necessary. It is highly recommended to complete a bug bounty before use.
Owner address may be sent to zero address
at function setOwner
and because of it owner will lose his access to smart contract.
Need to check if _newOwner
is not zero address.
require(_newOwner != address(0));
Tokens could be sent to zero address, that means they will be locked and will not be able to use or burn. Functions transfer
and transferFrom
.
Need to check if _to
address is not zero address.
require(_to != address(0));
In case the user wants to change the approved amount an double-spend attack is possible.
Can be reviewed here.
https://gist.github.com/yuriy77k/0642bdfd140789929904373bf3564123
https://gist.github.com/yuriy77k/df7339f021bed8366ed40da915da1a8f