CertiK reviewed Trustline on 16 Dec 2022: 17 findings, 0 critical; 10 marked fixed, 1 acknowledged, 6 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 | 0 | 0 |
| High | 0 | 1 | 0 |
| Medium | 0 | 0 | 2 |
| Low | 6 | 0 | 8 |
When transferring deflationary ERC20 tokens, the input amount may not be equal to the received amount due to the charged transaction fee. For example, if a user sends 100 deflationary tokens (with a 10% transaction fee), only 90 tokens actually arrived at the contract. However, a failure to discount such fees may allow the same user to withdraw 100 tokens from the contract, which causes the contract to lose 10 tokens in such a transaction. Reference: https://thoreum-finance.medium.com/what-exploit-happened-today-for-gocerberus-and-garuda-also-for-lokum-ybear-piggy-caramelswap-3943ee23a39f
In the functions `_modifyEquity()` and `_modifyDebt()`, the input parameters `equityAmount` and `debtAmount` are passed independently with `underlyingAmount` and `collAmount`. There are functions `_certifyEquityPosition()` and `_certifyDebtPosition()` to ensure their upper bound, but there is no lower bound check.
The variables such as `debtPenalty`, `equityPenalty`, `newMaxDiscount`, `stepPeriod`, `discountIncreasePerStep`, `liquidationRatio`, `offering.amount` do not have reasonable boundaries, so they can be given arbitrary values after deploying.
The amount of Bond Sale is determined by the system debt and liquidated debt amount. The system debt can be modified via the `increaseSystemDebt()` function. This function is marked as `onlyByProbity`. Also, the increase of the system debt can block the redeems of the `bondTokens` in the contract `BondIssuer`.
Bond Sale and Liquidation are two ways of debt settlement. The primary way is Liquidation, but the `Liquidator.liquidateVault()` function can be called by anyone. Also, the underlying/collateral tokens will be immediately liquidated if their value is not sufficient for the equity/debt position. Usually, the borrower's collateral assets are liquidated when the loan is overdue. We understand that the collateral tokens can be sold to liquidate the debt, but why do the underlying tokens need to be sold or auctioned?
The protocol is serving as the underlying entity to interact with 3rd party contracts such as `Ftso`, `FtsoRewardManager`, and `FtsoManager`. The scope of the audit treats 3rd party entities as black boxes and assumes their functional correctness. However, in the real world, 3rd parties can be compromised and this may lead to lost or stolen assets. Additionally, upgrades of 3rd parties can possibly create severe impacts, such as increasing fees of 3rd parties, migrating to new LP pools, etc.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (25)
1,045 projects reviewed · 1,376 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