Rari Capital audit reports

Arbitrum, Ethereum, Fantomrari.capitalXGitHub

Rari Capital has 3 public audit reports from Quantstamp; the latest is Quantstamp, 2 Jul 2021; no critical findings reported. It also holds 4 deployed contracts on 3 chains and 1 incident (latest 7 May 2021).

Critical findings
No open critical findings
Across 3 reports.
Incident
Incident 7 May 2021
Source: De.Fi incident database. 1 audit has been published since. See the incident
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.

Incidents1

Attached through a shared contract address. Our incident data ends in Nov 2026.

Incident

Incident,

totalETH() value, resulting in the withdrawal of more ETH than deposited by the attacker.

Source: De.Fi incident database.

Audits before it
2.
Audits since
1, the latest dated 2 Jul 2021.

Audits3

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
Rari Capital (On-chain Governance)Security firm: QuantstampDate: Scope: Files listedNone openFindings: 2 medium · 2 low
4 fixed
certificate.quantstamp.com ↗
RariCapitalSecurity firm: QuantstampDate: Scope: Files listedNone openFindings: 3 high · 6 medium · 5 low
8 fixed · 3 acknowledged
certificate.quantstamp.com ↗
RariCapital V2Security firm: QuantstampDate: Scope: Files listedNone openFindings: 3 high · 6 medium · 9 low
9 fixed · 6 acknowledged
certificate.quantstamp.com ↗

Findings82

82 findings in 3 reports: 21 fixed, 6 mitigated, 9 acknowledged (the team chose not to change the code), none open, 46 informational.

SeverityAcknowledgedFixedMitigated
Critical000
High060
Medium2102
Low754

Not fixed (9)

MediumAcknowledgedDivergent mirrored statesRariCapital · Quantstamp · 20 Aug 2020

There are several state variables that are mirrored in the following contracts: `RariFundManager`, `RariFundController` and `RariFundProxy`, namely: 1. `_fundDisabled`: Boolean that, if true, disables the primary functionality of the contract. 1. `_rariFundRebalancerAddress`: Address of the rebalancer. 1. `_supportedCurrencies`: Array of currencies supported by the fund. 1. `_erc20Contracts`: Maps ERC20 token contract addresses to supported currency codes. 1. `_currencyDecimals`: Maps decimal precisions (number of digits after the decimal point) to supported currency codes. 1. `_poolsByCurrency`: Maps arrays of supported pools to currency codes. During development (before deployment), this creates ambiguity which makes maintainability difficult and error prone, because developers: (1) might forget to update all the values of these state variables in all contracts they occur or they (2) might update the state variables with different values in different contracts. For example if new supported currencies are added any of the following input parameters could be set differently for different contracts: `currencyCode`, `erc20Contract`, `decimals` and `pool`. This would have a significant impact on the system as a whole. <br> After deployment the value of: 7. `_fundDisabled` can be set independently in different contracts by calling the `disableFund` and `enableFund` functions, which could lead the fund to be disable in one contract and enabled in the other contract. This can have an important impact on deposits, withdrawals, orders and/or approvals performed by end-users, when values are set differently during the small time window in which the 2 separate function calls are performed. 8. `_rariFundRebalancerAddress` can be set independently in different contracts by calling the `setFundRebalancer` function. This can have an important impact on deposits, withdrawals, orders and/or approvals performed by end-users, when values are set differently during the small time window in which the 2 separate function calls are performed.

Report ↗
MediumAcknowledgedDivergent mirrored statesRariCapital V2 · Quantstamp · 20 Aug 2020

There are several state variables that are mirrored in the following contracts: `RariFundManager`, `RariFundController` and `RariFundProxy`, namely: 1. `_fundDisabled`: Boolean that, if true, disables the primary functionality of the contract. 1. `_rariFundRebalancerAddress`: Address of the rebalancer. 1. `_supportedCurrencies`: Array of currencies supported by the fund. 1. `_erc20Contracts`: Maps ERC20 token contract addresses to supported currency codes. 1. `_currencyDecimals`: Maps decimal precisions (number of digits after the decimal point) to supported currency codes. 1. `_poolsByCurrency`: Maps arrays of supported pools to currency codes. During development (before deployment), this creates ambiguity which makes maintainability difficult and error prone, because developers: (1) might forget to update all the values of these state variables in all contracts they occur or they (2) might update the state variables with different values in different contracts. For example if new supported currencies are added any of the following input parameters could be set differently for different contracts: `currencyCode`, `erc20Contract`, `decimals` and `pool`. This would have a significant impact on the system as a whole. <br> After deployment the value of: 7. `_fundDisabled` can be set independently in different contracts by calling the `disableFund` and `enableFund` functions, which could lead the fund to be disable in one contract and enabled in the other contract. This can have an important impact on deposits, withdrawals, orders and/or approvals performed by end-users, when values are set differently during the small time window in which the 2 separate function calls are performed. 8. `_rariFundRebalancerAddress` can be set independently in different contracts by calling the `setFundRebalancer` function. This can have an important impact on deposits, withdrawals, orders and/or approvals performed by end-users, when values are set differently during the small time window in which the 2 separate function calls are performed.

Report ↗
LowAcknowledgedController unable to pause specific stablecoinsRariCapital V2 · Quantstamp · 20 Aug 2020

Stablecoins, like other financial assets on-chain, are likely victims of recurrent attacks or attempted attacks. In case of specific disruption of any stablecoin, the controllers of the pools have no functionality to selectively pause or stop the use of particular stablecoin.

Report ↗
LowAcknowledgedETH/USD prices could be staleRariCapital · Quantstamp · 20 Aug 2020

The following functions do not check if the ETH/USD price is stale: 1. `RariGovernanceTokenDistributor.getEthUsdPrice` in `rari-governance-contracts` 1. `RariFundPriceConsumer.getDaiUsdPrice` in `rari-stable-pool-contracts` and `rari-yield-pool-contracts` 1. `RariFundPriceConsumer.getEthUsdPrice` in `rari-stable-pool-contracts` and `rari-yield-pool-contracts` 1. `RariFundPriceConsumer.getPriceInEth` in `rari-stable-pool-contracts` and `rari-yield-pool-contracts`. According to the Chainlink documentation: * [under current notifications](https://docs.chain.link/docs/developer-communications#current-notifications): "if answeredInRound < roundId could indicate stale data." * [under historical price data](https://docs.chain.link/docs/historical-price-data#solidity): "A timestamp with zero value means the round is not complete and should not be used."

Report ↗
LowAcknowledgedETH/USD prices could be staleRariCapital V2 · Quantstamp · 20 Aug 2020

The following functions do not check if the ETH/USD price is stale: 1. `RariGovernanceTokenDistributor.getEthUsdPrice` in `rari-governance-contracts` 1. `RariFundPriceConsumer.getDaiUsdPrice` in `rari-stable-pool-contracts` and `rari-yield-pool-contracts` 1. `RariFundPriceConsumer.getEthUsdPrice` in `rari-stable-pool-contracts` and `rari-yield-pool-contracts` 1. `RariFundPriceConsumer.getPriceInEth` in `rari-stable-pool-contracts` and `rari-yield-pool-contracts`. According to the Chainlink documentation: * [under current notifications](https://docs.chain.link/docs/developer-communications#current-notifications): "if answeredInRound < roundId could indicate stale data." * [under historical price data](https://docs.chain.link/docs/historical-price-data#solidity): "A timestamp with zero value means the round is not complete and should not be used."

Report ↗
LowAcknowledgedHardcoded dependency contractsRariCapital V2 · Quantstamp · 20 Aug 2020

Controllers of external contracts have hardcode addresses. In the extreme scenario where these contracts are replaced by new ones (hard upgrade) or the community capital migrates to similar ones (code fork), there is no way to upgrade the addresses of the controlled contracts.

Report ↗
LowAcknowledgedMissing input argument validation (2)RariCapital · Quantstamp · 20 Aug 2020

The following functions are missing input parameter validation: 1. `RariFundController.setFundManager` in `rari-ethereum-pool-fund` does not validate the `newContract` parameter of type `address`. 1. `setFundRebalancer` in all repos and all contracts does not check the `newAddress` parameter of type `address`. 1. `setFundPriceConsumer` in all repos does not check the `newContract` parameter of type `address`.

Report ↗
LowAcknowledgedMissing input argument validation (2)RariCapital V2 · Quantstamp · 20 Aug 2020

The following functions are missing input parameter validation: 1. `RariFundController.setFundManager` in `rari-ethereum-pool-fund` does not validate the `newContract` parameter of type `address`. 1. `setFundRebalancer` in all repos and all contracts does not check the `newAddress` parameter of type `address`. 1. `setFundPriceConsumer` in all repos does not check the `newContract` parameter of type `address`.

Report ↗
LowAcknowledgedMissing input validationRariCapital V2 · Quantstamp · 20 Aug 2020

The following function should perform additional checks: 1. `RariFundController.setEnzymeComptroller` should ensure that `comptroller` is non-zero. 1. `RariFundController.marketSell0xOrdersFillOrKill` should ensure that `inputErc20Contract` is non-zero. 1. `RariFundController.setFundManager` should ensure that `newContract` is non-zero. 1. `RariFundController.setFundRebalancer` should ensure that `newAddress` is non-zero. 1. `RariFundManager.authorizeFundManagerDataSource` should ensure that `authorizedFundManagerDataSource` is non-zero. 1. `RariFundManager.setFundController` should ensure that `newContract` is non-zero. 1. `RariFundManager.setFundToken` should ensure that `newContract` is non-zero. 1. `RariFundManager.setFundProxy` should ensure that `newContract` is non-zero. 1. `RariFundManager.setFundRebalancer` should ensure that `newContract` is non-zero.

Report ↗

Contracts4

AddressChainSource code
0xcf726a06f3dcec8ef2b033336d138caa0eae5af2Chain: Fantom
0xd291e7a03283640fdc51b121ac401383a46cc623Chain: ArbitrumSource code: Verified source
0xef888bca6ab6b1d26dbec977c455388ecd794794Chain: ArbitrumSource code: Verified source
0xd291e7a03283640fdc51b121ac401383a46cc623Chain: EthereumSource code: Verified source

All 4 addresses and the files the reports name

Rari Capital: questions

Is Rari Capital audited?

Trustblock holds 3 public audit reports for Rari Capital, dated 20 Aug 2020 to 2 Jul 2021. The latest is by Quantstamp (“Rari Capital (On-chain Governance)”).

Who audited Rari Capital?

Quantstamp wrote the 3 reports Trustblock holds for Rari Capital.

Are there open findings in Rari Capital’s audits?

9 findings are still open or acknowledged in the firms’ reports: 2 medium, 7 low (all 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