Mainframe

QuantstampFiles named in the report

Quantstamp reviewed Mainframe on 9 Nov 2020: 10 findings, 0 critical; 2 marked fixed, 7 acknowledged, 1 open.

No open critical findings
Open the reportOpen Mainframe’s security record

Report hosted on certificate.quantstamp.com.

Trustblock does not review code.

Findings10

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium000
Low172
LowAssumed Constant Number of DecimalsAcknowledged

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()`.

LowClone-and-OwnAcknowledged

The clone-and-own approach involves copying and adjusting open source code at one's own discretion. From the development perspective, it is initially beneficial as it reduces the amount of effort. However, from the security perspective, it involves some risks as the code may not follow the best practices, may contain a security vulnerability, or may include intentionally or unintentionally modified upstream libraries. Several files, particularly libraries, are cloned for this project.

LowPossible Malicious Interactions With Other ContractsAcknowledged

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

LowPotential Misuse of `decimals`Acknowledged

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).

LowPrivileged Roles and OwnershipAcknowledged

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.

LowRace Conditions / Front-RunningAcknowledged

A block is an ordered collection of transactions from all around the network. It's possible for the ordering of these transactions to manipulate the end result of a block. A miner attacker can take advantage of this by generating and moving transactions in a way that benefits themselves. Specifically, if an account can be liquidated, only the first mined transaction(s) to deplete the total debt will succeed.

LowUnlocked PragmaAcknowledged

Every Solidity file specifies in the header a version number of the format `pragma solidity (^)0.4.*`. The caret (`^`) before the version number implies an unlocked pragma, meaning that the compiler will use the specified version _and above_, hence the term "unlocked".

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (22)

  • contracts/test/TestOraclePriceUtils.sol
  • contracts/test/SimpleUniswapAnchoredView.sol
  • contracts/test/GodModRedemptionPool.sol
  • contracts/FyTokenInterface.sol
  • contracts/BalanceSheetInterface.sol
  • contracts/oracles/OraclePriceUtils.sol
  • contracts/invariants/FintrollerInvariants.sol
  • contracts/test/GodModeFyToken.sol
  • contracts/FyToken.sol
  • contracts/RedemptionPoolInterface.sol
  • contracts/RedemptionPool.sol
  • contracts/test/GodModeBalanceSheet.sol
  • contracts/FyTokenStorage.sol
  • contracts/invariants/BaseInvariants.sol
  • contracts/BalanceSheetStorage.sol
  • contracts/Fintroller.sol
  • contracts/RedemptionPoolStorage.sol
  • contracts/FintrollerInterface.sol
  • contracts/BalanceSheet.sol
  • contracts/oracles/UniswapAnchoredViewInterface.sol
  • contracts/FintrollerStorage.sol
  • contracts/test/Erc20Mintable.sol

Part of Mainframe’s security record

Mainframe
Audits2 audits by 1 firmLast audit Nov 2020, by Quantstamp.
Critical findingsNo open critical findingsAcross 2 reports.
Open Mainframe’s security record

Security firm

Quantstamp

236 projects reviewed · 332 reports · latest Oct 2026

See Quantstamp’s audits

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