Mainframe audit reports

Mainframe has 2 public audit reports from Quantstamp; the latest is Quantstamp, 9 Nov 2020; no critical findings reported.

Critical findings
No open critical findings
Across 2 reports.
Open the latest report
Your label, live
Get the label for your site

Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.

Audits2

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
MainframeSecurity firm: QuantstampDate: Scope: Files listedNone openFindings: 5 low
4 acknowledged
certificate.quantstamp.com ↗
Mainframe Secondary AuditSecurity firm: QuantstampDate: Scope: Files listedNone openFindings: 2 low
2 open
certificate.quantstamp.com ↗

Findings12

12 findings in 2 reports: 1 mitigated, 4 acknowledged (the team chose not to change the code), 2 open, 5 informational.

SeverityOpenAcknowledgedMitigated
Critical000
High000
Medium000
Low241

Not fixed (6)

LowAcknowledgedAssumed Constant Number of DecimalsMainframe · Quantstamp · 9 Nov 2020

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 ↗
LowAcknowledgedPossible Malicious Interactions With Other ContractsMainframe · Quantstamp · 9 Nov 2020

Malicious interactions with other protocols like Uniswap may be possible. For example, the contract may be susceptible to flash loans.

Report ↗
LowAcknowledgedPotential Misuse of `decimals`Mainframe · Quantstamp · 9 Nov 2020

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 ↗
LowAcknowledgedPrivileged Roles and OwnershipMainframe · Quantstamp · 9 Nov 2020

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 ↗
LowOpenMethod with Unlimited Gas ConsumptionMainframe Secondary Audit · Quantstamp · 4 Jul 2018

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 ↗
LowOpenOther IssuesMainframe Secondary Audit · Quantstamp · 4 Jul 2018

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 ↗

Contracts

No deployed address is recorded for these audits.

The reports name a repository or files. Open a report to see its scope.

The repositories and files the reports name

Mainframe: questions

Is Mainframe audited?

Trustblock holds 2 public audit reports for Mainframe, dated 4 Jul 2018 to 9 Nov 2020. The latest is by Quantstamp (“Mainframe”).

Who audited Mainframe?

Quantstamp wrote the 2 reports Trustblock holds for Mainframe.

Are there open findings in Mainframe’s audits?

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