Communis has 1 public audit report from CertiK; dated 3 Jan 2023; no critical findings reported.
Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Statuses are the security firms’ own
4 findings are still open or acknowledged in the firms’ reports: 4 low (all open).
Divide Before Multiply
Communis - Audit · CertiK · 3 Jan 2023 · Report ↗
Lack of Documentation
Communis - Audit · CertiK · 3 Jan 2023 · Report ↗
Third Party Dependency
Communis - Audit · CertiK · 3 Jan 2023 · Report ↗
Unsafe Integer Cast
Communis - Audit · CertiK · 3 Jan 2023 · Report ↗
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| Communis - Audit | Security firm: CertiK | Date: | Scope: Files listed | None open | Findings: 5 low 1 fixed · 4 open | skynet.certik.com ↗ |
Statuses are the security firm’s own, from each report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 0 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 4 | 0 | 1 |
Performing integer division before multiplication truncates the low bits, losing the precision of calculation. ```solidity=753 uint256 recalculatedStakeShares = (s.stakedHearts + getRecalculatedBonusHearts(s)) * (10 ** 17) / stakesOriginalShareRate; ``` ```solidity=758 uint256 penalty = (s.stakedDays * (10 ** 15)) / 5555; ``` ```solidity=759 pr.maxPayout = (recalculatedStakeShares * penalty) / (10 ** 15); ``` --- ```solidity=770 bonusPercentage = ((3 * (10 ** 10)) * bonusPercentage) / (10 ** 10); ``` ```solidity=775 bonusPercentage = ((6 * (10 ** 10)) * bonusPercentage) / (10 ** 10); ``` --- ```solidity=784 payout = (maxPayout * (10 ** 10)) / bonusPercentage; ``` ```solidity=787 uint256 penalty = (stakesOriginalShareRate * (10 ** 15)) / globalShareRate; ``` ```solidity=788 payout = (payout * penalty) / (10 ** 15); ``` --- ```solidity=819 uint256 payout = (stakedCodeak / 80) * numberOfPayouts; ```
Open the reportThe contract lacks comments or documentation explaining the methodology of each function and the reasoning behind the decisions taken. Specifically, there is no explanation on the calculation of the reward as well as the rules for users to participate in the projects. We treat the calculation in the contract blackbox, and make several assumptions based on the error message/function name during the audit.
Open the reportThe contract is serving as the underlying entity to interact with one or more third party protocols. The scope of the audit treats third party entities as black boxes and assume their functional correctness. However, in the real world, third parties can be compromised and this may lead to lost or stolen assets. In addition, upgrades of third parties can possibly create severe impacts, such as increasing fees of third parties, migrating to new LP pools, etc. ```solidity=545 _HEX private HEX; ``` - The contract `Communis` interacts with third party contract with `_HEX` interface via `HEX`.
Open the report```solidity=651 (uint256(uint128(payout))) ``` - The type conversion `uint128(payout)` from larger type uint256 to smaller type uint128 may truncate data. --- ```solidity=652 | (uint256(uint128(recalculatedStakeShares)) << 128) ``` - The type conversion `uint128(recalculatedStakeShares)` from larger type uint256 to smaller type uint128 may truncate data. --- ```solidity=654 | (uint256(uint16(stakedDays)) << 40) ``` - The type conversion `uint16(stakedDays)` from larger type uint256 to smaller type uint16 may truncate data. --- ```solidity=655 | (uint256(uint40(stakesOriginalShareRate)) << 56) ``` - The type conversion `uint40(stakesOriginalShareRate)` from larger type uint256 to smaller type uint40 may truncate data. --- ```solidity=656 | (uint256(uint72(stakedHearts)) << 96) ``` - The type conversion `uint72(stakedHearts)` from larger type uint256 to smaller type uint72 may truncate data. --- ```solidity=669 | (uint256(uint112(payout)) << 16) ``` - The type conversion `uint112(payout)` from larger type uint256 to smaller type uint112 may truncate data. --- ```solidity=679 uint256(uint128(amount)) ``` - The type conversion `uint128(amount)` from larger type uint256 to smaller type uint128 may truncate data. --- ```solidity=680 | (uint256(uint128(stakedCodeak)) << 128) ``` - The type conversion `uint128(stakedCodeak)` from larger type uint256 to smaller type uint128 may truncate data. --- ```solidity=689 uint256(uint128(amount)) ``` - The type conversion `uint128(amount)` from larger type uint256 to smaller type uint128 may truncate data. --- ```solidity=690 | (uint256(uint128(stakedCodeak)) << 128) ``` - The type conversion `uint128(stakedCodeak)` from larger type uint256 to smaller type uint128 may truncate data. --- ```solidity=701 if(red.endBonusPayoutDay < currentDay) red.endBonusPayoutDay = uint16(currentDay); ``` - The type conversion `uint16(currentDay)` from larger type uint256 to smaller type uint16 may truncate data. --- ```solidity=702 if(red.stakedDays < s.stakedDays) red.stakedDays = uint16(s.stakedDays); ``` - The type conversion `uint16(s.stakedDays)` from larger type uint256 to smaller type uint16 may truncate data. --- ```solidity=704 red.sharesDebt += uint72(s.stakeShares); ``` - The type conversion `uint72(s.stakeShares)` from larger type uint256 to smaller type uint72 may truncate data. --- ```solidity=823 ebd.nextPayoutDay += uint16(numberOfPayouts * 91); ``` - The type conversion `uint16(numberOfPayouts * 91)` from larger type uint256 to smaller type uint16 may truncate data. --- ```solidity=952 uint128 payoutDebt = uint128(payout / 2); ``` - The type conversion `uint128(payout / 2)` from larger type uint256 to smaller type uint128 may truncate data. --- ```solidity=990 HEX.stakeGoodAccounting(address(stakeOwner), stakeIndex, uint40(stakeID)); ``` - The type conversion `uint40(stakeID)` from larger type uint256 to smaller type uint40 may truncate data.
Open the reportThe reports name a repository or files. Open a report to see its scope.
Trustblock holds 1 public audit report for Communis, dated 3 Jan 2023. The latest is by CertiK (“Communis - Audit”).
CertiK wrote the report Trustblock holds for Communis.
4 findings are still open or acknowledged in the firms’ reports: 4 low (all open). No critical finding is reported. Statuses are the security firms’ own.
Is this your project? Show this record on your own website. The label states what the record holds, links to this page and updates by itself. It is free and needs no sign-in.
Automatic: the three strongest facts of this project’s own record (its last audit and two more), highlighted. They update with the record. Picking a fact turns Automatic off.
<head><script src="https://widget.trustblock.run/project-widget.min.js" defer></script></head><body><divdata-tb-project-widgetdata-tb-project-slug="communis"></div></body>
Paste the code where the label should appear. It uses no API credit and updates by itself.
Something 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