LI.FI

QuantstampFiles named in the report

Quantstamp reviewed LI.FI on 5 May 2022: 10 findings, 0 critical; 5 marked fixed, 4 acknowledged, 1 open.

No open critical findings
Open the reportOpen LI.FI’s security record

Report hosted on certificate.quantstamp.com.

Trustblock does not review code.

Findings10

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

SeverityOpenAcknowledgedFixed
Critical000
High100
Medium001
Low044
Medium`jlength` Not Updated After a DEX is Removed From the StorageFixed

On `L95` in `src/Facets/DexManagerFacet.sol`, the `jlength` is never updated after a DEX is removed from the storage using `_removeDex(j)`.

LowClone-And-OwnFixed

LiFinance project uses the EIP-2535 standard implementation. In the related documentation (`docs/LibDiamond.md`) is stated that is copied from the proposed implementation of the EIP author: `mudgen/diamond-1-hardhat` GitHub repository. However, we found that the files have minor differences between them.

LowEvents Should Be Emitted In Critical OperationsFixed

Several contracts implement an "initializer" function. These functions can be called many times, modifying the storage of the contract. This includes critical variables, such as addresses pointing to tokens and bridges. The execution of these functions should emit events to track misuse. `CBridgeFacet` emits `Inited` event (declared in `ILiFi` interface) when initialized. However, `HopFacet`, `HyphenFacet` and `NXTPFacet` contracts do not emit events when initialized or when critical changes are made.

LowTwo Versions Of `Swapper.sol`Fixed

We noticed that there are two files named `Swapper.sol` with similar functionality. Observing the git history, we think that `src/Facets/Swapper.sol` was not removed when refactored into `src/Helpers/Swapper.sol`. Also, no contract imports or inherits from `src/Facets/Swapper.sol` (i.e., this file is never used). This can lead to confusion and unexpected behavior if a contract imports the wrong file.

LowUnlocked PragmaFixed

Every Solidity file specifies in the header a version number of the format pragma solidity (^)0.8.*. The caret (^) before the version number implies an unlocked pragma, meaning that the compiler will use the specified version and above, hence the term "unlocked".

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 (31)

  • src/Facets/CBridgeFacet.sol
  • src/Helpers/ReentrancyGuard.sol
  • src/Facets/GenericSwapFacet.sol
  • src/Facets/HopFacet.sol
  • src/Facets/DexManagerFacet.sol
  • src/Interfaces/IAnyswapRouter.sol
  • src/Libraries/LibDiamond.sol
  • src/Interfaces/IHyphenRouter.sol
  • src/Facets/WithdrawFacet.sol
  • src/Helpers/Swapper.sol
  • src/Libraries/LibAsset.sol
  • src/Interfaces/IERC173.sol
  • src/LiFiDiamond.sol
  • src/Facets/DiamondCutFacet.sol
  • src/Interfaces/IAnyswapToken.sol
  • src/Facets/OwnershipFacet.sol
  • src/Interfaces/ILiFi.sol
  • src/Interfaces/ITransactionManager.sol
  • src/Libraries/LibSwap.sol
  • src/Facets/DiamondLoupeFacet.sol
  • src/Interfaces/ICBridge.sol
  • src/Facets/NXTPFacet.sol
  • src/Interfaces/IDiamondLoupe.sol
  • src/Interfaces/IHopBridge.sol
  • src/Libraries/LibStorage.sol
  • src/Interfaces/IERC165.sol
  • src/Facets/AnyswapFacet.sol
  • src/Facets/HyphenFacet.sol
  • src/Interfaces/IDiamondCut.sol
  • src/Errors/GenericErrors.sol
  • src/Libraries/LibUtil.sol

Part of LI.FI’s security record

LI.FI
Audits2 audits by 2 firmsLast audit Jan 2025, by Cantina.
Critical findingsNo open critical findingsAcross 2 reports.
IncidentIncident 15 Jul 2024Source: De.Fi incident database.
Open LI.FI’s security record

Security firm

Quantstamp

236 projects reviewed · 332 reports · latest Oct 2026

See Quantstamp’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