P3C Smart Contract audit report.
This is the report from a security audit performed on P3C Smart Contract by MrCrambo.
The audit focused primarily on the security of P3C Smart Contract.
In total, ** 3 issues** were reported including:
-
0 high severity issues.
-
2 medium severity issues.
-
0 low severity issues.
-
1 minor remark.
Tokens could be sent to zero address, that means they will be locked and will not be able to use or burn.
Function transfer
at line 374.
Need to check if _toAddress
address is not zero address.
require(_toAddress != address(0));
Lot of math operations done without using SafeMath library which could cause Integer over- or under- flow. For example:
payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude);
Use SafeMath library in all math operations for preventing yourself from over- and under- flows.
Some of events names start with lowercase, lines 107, 114, 120, 126
All event names should start with Uppercase as declared in solidity style guide
event OnTokenPurchase();
There were find two medium severity issues, that should be fixed before deploying. Also we highly recommend to complete other bugs before use.