CertiK reviewed RAI Finance on 26 Oct 2022: 12 findings, 1 critical; 7 marked fixed, 2 acknowledged, 3 open.
Report hosted on skynet.certik.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 1 | 0 |
| High | 3 | 0 | 2 |
| Medium | 0 | 1 | 1 |
| Low | 0 | 0 | 4 |
The `manager` can call `removeModule` at any time, if `PortfolioModule` is removed, `PortfolioModule.redeem` can not be called on this `portfolio`, users can not `redeem` their assets. So limit calling `removeModule` is necessary.
In the contract, `PortfolioFactory`, the role, `_owner`, has the authority over the functions shown in the diagram below. Any compromise to the privileged account which has access to `_owner` may allow the hacker to take advantage of this and [fixme]. 
Everyone can call `PortfolioFactory.create` to create a `Portfolio` with specified `manager`. The `manager` can call `ManagerModule.trade` to swap one token to another token, malicious users can get profit from this `trade`, but the assets of `Portfolio` are lost. An example looks like `Sandwich Attacks`, the `manager` calls the function `ManagerModule.trade` with meager `_minReceiveQuantity` value, and sandwich attack himself to get profit.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (31)
1,044 projects reviewed · 1,375 reports · latest May 2025
See CertiK’s auditsSomething 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