CertiK reviewed SociaPol (SociaPol - audit) on 2 Nov 2023: 12 findings, 0 critical; 9 marked fixed, 3 open.
Report hosted on skynet.certik.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 1 | 0 | 2 |
| Medium | 0 | 0 | 2 |
| Low | 2 | 0 | 5 |
All of the `SociaPol` tokens are sent to the contract deployer address. This is a centralization risk because the deployer can distribute tokens without obtaining the consensus of the community. Any compromise to these addresses may allow a hacker to steal and sell tokens on the market, resulting in severe damage to the project. ```solidity=9 constructor(string memory name, string memory symbol, uint8 decimal, uint256 initialSupply) ERC20(name, symbol, decimal) { uint256 amount = initialSupply * 10 ** decimal; _mint(msg.sender, amount); } ```
One or more parameters with `memory` data location are never modified in their functions and those functions are never called internally within the contract. Thus, their data location can be changed to `calldata` to avoid the gas consumption copying from calldata to memory. ```solidity=122 function batchAddBlacklist( ``` `batchAddBlacklist` has memory location parameters: `_beneficiaries`. --- ```solidity=159 function batchCreateVestingSchedule( ``` `batchCreateVestingSchedule` has memory location parameters: `_beneficiaries`, `amounts`, `startTimes`, `endTimes`, `periods`.
The for loop contains repeated storage read access in the condition check. Given that the ending condition does not change in the for loop, the repeated storage read is unnecessary, and its associated high gas cost can be eliminated. ```solidity=248 for (uint256 i = 0; i < beneficiaries.length; i++) { ``` Loop condition `i < beneficiaries.length` accesses the `length` field of a storage array.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (6)
1,045 projects reviewed · 1,376 reports · latest May 2025
See CertiK’s auditsSomething wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.
Tell us