Trustline

CertiKFiles named in the report

CertiK reviewed Trustline on 16 Dec 2022: 17 findings, 0 critical; 10 marked fixed, 1 acknowledged, 6 open.

No open critical findings
Open the reportOpen Trustline’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings17

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High010
Medium002
Low608
LowIncompatibility with Deflationary TokensOpen

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

LowInput Validation of `equityAmount` And `debtAmounOpen

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.

LowLack of reasonable boundaryOpen

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.

LowLogic issue about `increaseSystemDebt()`Open

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`.

LowLogic issue about liquidationOpen

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?

LowThird Party DependenciesOpen

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.

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (25)

  • contracts/probity/VaultEngineLimited.sol
  • contracts/probity/Auctioneer.sol
  • contracts/probity/Teller.sol
  • contracts/dependencies/AccessControl.sol
  • contracts/probity/VaultEngineIssuer.sol
  • contracts/probity/assets/NativeAssetManager.sol
  • contracts/probity/BondIssuer.sol
  • contracts/probity/assets/ERC20AssetManager.sol
  • contracts/dependencies/Delegatable.sol
  • contracts/dependencies/Eventful.sol
  • contracts/probity/VaultEngine.sol
  • contracts/probity/Registry.sol
  • contracts/probity/priceFunction/LinearDecrease.sol
  • contracts/dependencies/HighAPR.sol
  • contracts/probity/Treasury.sol
  • contracts/dependencies/Math.sol
  • contracts/dependencies/LowAPR.sol
  • contracts/probity/ReservePool.sol
  • contracts/probity/VaultEngineRestricted.sol
  • contracts/probity/assets/VPAssetManager.sol
  • contracts/probity/Liquidator.sol
  • contracts/dependencies/Stateful.sol
  • contracts/probity/tokens/Usd.sol
  • contracts/probity/tokens/Pbt.sol
  • contracts/probity/PriceFeed.sol

Part of Trustline’s security record

Trustline
Audits1 audit by 1 firmLast audit Dec 2022, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open Trustline’s security record

Security firm

CertiK

1,045 projects reviewed · 1,376 reports · latest May 2025

See CertiK’s audits

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