Port3 has 1 public audit report from CertiK; dated 30 Oct 2023; 1 critical finding, 1 acknowledged, not fixed.
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
8 findings are still open or acknowledged in the firms’ reports: 1 critical, 1 high, 1 medium, 5 low (5 open, 3 acknowledged).
The `owner` can withdraw all the assets from the
Port3-audit · CertiK · 30 Oct 2023 · Report ↗
Centralization Related Risks
Port3-audit · CertiK · 30 Oct 2023 · Report ↗
No Upper Limit in **setProtocolFeePercent** and *
Port3-audit · CertiK · 30 Oct 2023 · Report ↗
Confusing function implementation and function na
Port3-audit · CertiK · 30 Oct 2023 · Report ↗
Incompatibility with Deflationary Tokens
Port3-audit · CertiK · 30 Oct 2023 · Report ↗
Third-Party Dependency Usage
Port3-audit · CertiK · 30 Oct 2023 · Report ↗
Unnecessary Use of SafeMath
Port3-audit · CertiK · 30 Oct 2023 · Report ↗
Variables That Could Be Declared as Immutable
Port3-audit · CertiK · 30 Oct 2023 · Report ↗
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| Port3-audit | Security firm: CertiK | Date: | Scope: Files listed | 1 critical acknowledged, not fixed | Findings: 1 critical · 1 high · 1 medium · 7 low 2 fixed · 3 acknowledged · 5 open | skynet.certik.com ↗ |
Statuses are the security firm’s own, from each report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 1 | 0 |
| High | 0 | 1 | 0 |
| Medium | 0 | 1 | 0 |
| Low | 5 | 0 | 2 |
The "claimRandomPool" function allows owners to withdraw certain amount of assets from the contract without any restrictions. The auditor would like to understand how such an implementation matches the function name "claimRandomPool." What does the word "Random" mean in the context of the function?
Open the reportWhen transferring deflationary ERC20 tokens, the input amount may not be equal to the received amount due to the charged transaction fee. For example, if a user sends 100 deflationary tokens (with a 10% transaction fee), only 90 tokens actually arrived to the contract. However, a failure to discount such fees may allow the same user to withdraw 100 tokens from the contract, which causes the contract to lose 10 tokens in such a transaction. Reference: https://thoreum-finance.medium.com/what-exploit-happened-today-for-gocerberus-and-garuda-also-for-lokum-ybear-piggy-caramelswap-3943ee23a39f ```solidity=106 IERC20(rewardToken).safeTransferFrom(msg.sender, address(this), amount); ``` - Transferring tokens by `amount`. ```solidity=110 totalReward = totalReward.add(amount); ``` - This function call executes the following operation. - In `SafeMath.add`, - `uint256 c = a + b;` - The `amount` appears to be used for bookkeeping purposes without compensating the potential transfer fees.
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 assumes 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=18 address public rewardToken; ``` - The contract `PrizePool` interacts with third party contract with `IERC20` interface via `rewardToken`.
Open the reportThe `SafeMath` library is used unnecessarily. With Solidity compiler versions 0.8.0 or newer, arithmetic operations will automatically revert in case of integer overflow or underflow. ```solidity=13 using SafeMath for uint256; ``` - `SafeMath` library is used for `uint256` type in `PrizePool` contract. ```solidity=83 userFeePool[_users[i]] = userFeePool[_users[i]].add(_amounts[i]); ``` - `SafeMath.add` is called in `setWhitelist` function of `PrizePool` contract. *Note: Only a sample of 2 `SafeMath` library usage in this contract (out of 18) are shown above.* --- ```solidity=17 library SafeMath { ``` - An implementation of `SafeMath` library is found.
Open the reportThe linked variables assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation but will remain constant throughout the lifetime of a deployed contract. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.
Open the reportThe reports name a repository or files. Open a report to see its scope.
Trustblock holds 1 public audit report for Port3, dated 30 Oct 2023. The latest is by CertiK (“Port3-audit”).
CertiK wrote the report Trustblock holds for Port3.
8 findings are still open or acknowledged in the firms’ reports: 1 critical, 1 high, 1 medium, 5 low (5 open, 3 acknowledged). Of 1 critical finding: 1 acknowledged, not fixed. 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="port3"></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