Mainframe has 2 public audit reports from Quantstamp; the latest is Quantstamp, 9 Nov 2020; no critical findings reported.
Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| Mainframe | Security firm: Quantstamp | Date: | Scope: Files listed | None open | Findings: 5 low 4 acknowledged | certificate.quantstamp.com ↗ |
| Mainframe Secondary Audit | Security firm: Quantstamp | Date: | Scope: Files listed | None open | Findings: 2 low 2 open | certificate.quantstamp.com ↗ |
12 findings in 2 reports: 1 mitigated, 4 acknowledged (the team chose not to change the code), 2 open, 5 informational.
| Severity | Open | Acknowledged | Mitigated |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 0 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 2 | 4 | 1 |
It is important to state explicitly that `FyToken` expects the underlying and collateral to have a constant values of `decimals()`. It's a reasonable assumption, but there may exist tokens that have a variable value of `decimals()`.
Report ↗Malicious interactions with other protocols like Uniswap may be possible. For example, the contract may be susceptible to flash loans.
Report ↗Lines 60, 67: although `decimals()` usually returns the correct expected value, according to the ERC20 spec "This method can be used to improve usability, but interfaces and other contracts MUST NOT expect these values to be present" From [EIPs/eip-20.md at master · ethereum/EIPs](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md).
Report ↗Smart contracts will often have `owner` variables to designate the person with special privileges to make modifications to the smart contract. However, this centralization of power needs to be made clear to the users, especially depending on the level of privilege the contract allows to the owner.
Report ↗In smart contracts, for loops are often prone to vulnerabilities given the nature of transactions and the concept of gas. The gas necessary for executing such a loop is proportional to the number of iterations. Using is safe when the number of iterations is predictable, but against the best practices if unknown. In MainframeTokenDistribution.sol, the distribute Tokens() function loops through all recipients passed to the smart contract. Because the number of recipients is unbounded, it is possible that the transaction will consume so much gas that it will not be able to fit within a block. In addition, if the transferFrom() function ever failed, it would revert all progress thus far. To mitigate both these issues, it is much safer to break that functionality into smaller, digestible pieces.
Report ↗These other issues, though not immediate security vulnerabilities, were still concerns to the Quantstamp team. If possible, take some time to fix the following potential problems. • In file MainframeToken.sol in the validDestination modifier, we suggest that require(address != 0x0) be included in this modifier as well. • Both MainframeToken#47,51 and MainframeTokenDistribution#8, 19 accept uint parameters. We suggest that those be turned into uint256. • Consider making the emergencyERC20Drain() functions of MainframeToken.sol identical to that of MainframeTokenDistribution.sol to drain any and all accidental tokens, as there is likely no scenario in which it would be preferable to only drain, say, half.
Report ↗The reports name a repository or files. Open a report to see its scope.
Trustblock holds 2 public audit reports for Mainframe, dated 4 Jul 2018 to 9 Nov 2020. The latest is by Quantstamp (“Mainframe”).
Quantstamp wrote the 2 reports Trustblock holds for Mainframe.
6 findings are still open or acknowledged in the firms’ reports: 6 low (2 open, 4 acknowledged). No critical finding is reported. Statuses are the security firms’ own.
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