Quantstamp reviewed Fodl Finance (Fodl) on 13 Oct 2021: 11 findings, 0 critical; 4 marked fixed, 5 acknowledged, 2 open.
Report hosted on certificate.quantstamp.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 0 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 2 | 5 | 4 |
Approvals are not reset to 0 after swaps in `exchange()`, `swapFromExact()` and `swapToExact()`.
The constant `BLOCKS_PER_YEAR = 365 * 24 * 60 * 4` suggests 15 second block times, which does not reflect the typical block times for the past year of around 13 seconds. This will inflate the calculated supply and borrow APRs. Furthermore, the actual number of blocks may depend on the network on which the contracts are deployed.
The protocol relies on functionalities of external contracts. Therefore, security of the project depends on these contracts. While we are unaware of any immediate issues, it is important to note that DeFi protocols may be vulnerable to market manipulation, computational errors, etc. Furthermore, we also want to note that the project assumes constant supply of the external tokens, i.e., inflationary and deflationary tokens are not compatible (e.g., with `Fodl/modules/FundsManager/FundsManager.sol`).
Smart contracts will often have `owner` variables to designate the person with special privileges to make modifications to the smart contract. Specifically: 1. The contracts use the diamond pattern, which allows the owner to change implementations arbitrarily. 1. The `FundsManager` implements a tax on withdrawals. There is no limit in the contract for how large the tax percentage can be.
The function `exchange()` constructs a routing path between the `fromToken` and the `toToken`, however not all token pairs have a direct routing path in Uniswap. In such cases, it is often sufficient to create a routing path that first converts `fromToken` to ETH, and then from ETH to the `toToken`. The same issue exists for all functions that construct a routing path in the contract.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (71)
236 projects reviewed · 332 reports · latest Oct 2026
See Quantstamp’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