MetaDex has 1 public audit report from CertiK; dated 7 Feb 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
6 findings are still open or acknowledged in the firms’ reports: 1 high, 5 low (5 open, 1 acknowledged).
Centralization Risks
Metadex · CertiK · 7 Feb 2023 · Report ↗
Contract Can Lock MetaDex Indefenitely
Metadex · CertiK · 7 Feb 2023 · Report ↗
Third Party Dependencies
Metadex · CertiK · 7 Feb 2023 · Report ↗
Too Many Digits
Metadex · CertiK · 7 Feb 2023 · Report ↗
Unnecessary `payable` Address Type
Metadex · CertiK · 7 Feb 2023 · Report ↗
Unnecessary Use of SafeMath
Metadex · CertiK · 7 Feb 2023 · Report ↗
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| Metadex | Security firm: CertiK | Date: | Scope: Files listed | None open | Findings: 1 high · 22 low 17 fixed · 1 acknowledged · 5 open | skynet.certik.com ↗ |
Statuses are the security firm’s own, from each report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 1 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 5 | 0 | 17 |
When calculating the amount that each ticket can claim or the amount that may be auto injected it is rounded down. This can cause the `amountToShareToWinners` to be larger than the amount that can actually be claimed/auto-injected. In this case the difference will be locked in the contract forever as there is no way to recover the tokens.
Open the reportThe contract is serving as the underlying entity to interact with third party VRF. The scope of the audit treats 3rd party entities as black boxes and assume their functional correctness. However, in the real world, 3rd parties can be compromised and this may lead to lost or stolen assets. In addition, upgrades of 3rd parties can possibly create severe impacts, such as increasing fees of 3rd parties, migrating to new LP pools, etc.
Open the reportLiterals with many digits are difficult to read and review. ```solidity=168 require((thisTicketNumber >= 1000000) && (thisTicketNumber <= 1999999), "Outside range"); ``` --- ```solidity=170 _numberTicketsPerLotteryId[_lotteryId][1 + ((thisTicketNumber / 100000) % 10)]++; ``` --- ```solidity=174 _numberTicketsPerLotteryId[_lotteryId][11111 + ((thisTicketNumber / 10) % 100000)]++; ``` --- ```solidity=175 _numberTicketsPerLotteryId[_lotteryId][111111 + ((thisTicketNumber / 1) % 1000000)]++; ``` --- ```solidity=669 uint32 transformedWinningNumber = _bracketCalculator[_bracket] + ((winningTicketNumber / (100000 / (uint32(10)**_bracket)) ) % (uint32(10)**(_bracket + 1))); ``` --- ```solidity=672 uint32 transformedUserNumber = _bracketCalculator[_bracket] + ((userNumber / (100000 / (uint32(10)**_bracket)) ) % (uint32(10)**(_bracket + 1))); ``` --- ```solidity=16 constructor() ERC20("METADEX", "METADEX") ERC20Capped(1000000000 * (10**uint256(18))) { ```
Open the reportIn `release()` function, the address `vestingSchedule.beneficiary` is casted to `address payable` type, but no base currency tokens are transferred in or out from that address. So it is an unnecessary casting operation.
Open the reportThe `SafeMath` library is used unnecessarily in `TokenVesting.sol`. With Solidity compiler versions 0.8.0 or newer, arithmetic operations will automatically revert in case of integer overflow or underflow.
Open the reportThe reports name a repository or files. Open a report to see its scope.
Trustblock holds 1 public audit report for MetaDex, dated 7 Feb 2023. The latest is by CertiK (“Metadex”).
CertiK wrote the report Trustblock holds for MetaDex.
6 findings are still open or acknowledged in the firms’ reports: 1 high, 5 low (5 open, 1 acknowledged). 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="metadex"></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