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.
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).
Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Attached through a shared contract address. Our incident data ends in Nov 2026.
totalETH() value, resulting in the withdrawal of more ETH than deposited by the attacker.
Source: De.Fi incident database.
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| Rari Capital (On-chain Governance) | Security firm: Quantstamp | Date: | Scope: Files listed | None open | Findings: 2 medium · 2 low 4 fixed | certificate.quantstamp.com ↗ |
| RariCapital | Security firm: Quantstamp | Date: | Scope: Files listed | None open | Findings: 3 high · 6 medium · 5 low 8 fixed · 3 acknowledged | certificate.quantstamp.com ↗ |
| RariCapital V2 | Security firm: Quantstamp | Date: | Scope: Files listed | None open | Findings: 3 high · 6 medium · 9 low 9 fixed · 6 acknowledged | certificate.quantstamp.com ↗ |
82 findings in 3 reports: 21 fixed, 6 mitigated, 9 acknowledged (the team chose not to change the code), none open, 46 informational.
| Severity | Acknowledged | Fixed | Mitigated |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 6 | 0 |
| Medium | 2 | 10 | 2 |
| Low | 7 | 5 | 4 |
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 ↗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 ↗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 ↗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 ↗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 ↗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 ↗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 ↗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 ↗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 ↗| Address | Chain | Source code |
|---|---|---|
| 0xcf72…5af20xcf726a06f3dcec8ef2b033336d138caa0eae5af2 | Chain: Fantom | |
| 0xd291…c6230xd291e7a03283640fdc51b121ac401383a46cc623 | Chain: Arbitrum | Source code: Verified source |
| 0xef88…47940xef888bca6ab6b1d26dbec977c455388ecd794794 | Chain: Arbitrum | Source code: Verified source |
| 0xd291…c6230xd291e7a03283640fdc51b121ac401383a46cc623 | Chain: Ethereum | Source code: Verified source |
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)”).
Quantstamp wrote the 3 reports Trustblock holds for Rari Capital.
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