Native v2 (Security Review)

QuantstampFiles named in the report

Audit · firm’s term: security review

Quantstamp reviewed Native v2 (Native v2 (Security Review)) on 6 Jan 2025: 18 findings, 0 critical; 6 marked fixed, 9 acknowledged, 3 open.

No open critical findings
Open the reportOpen Native v2’s security record

Report hosted on certificate.quantstamp.com.

Trustblock does not review code.

Findings18

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

SeverityOpenAcknowledgedFixed
Critical000
High012
Medium033
Low351
LowPossible Division by ZeroOpen

The variables `totalUnderlying` and `totalShares` are both used as denominators in critical functions. While the denominators are checked to prevent division by zero in most places, this check is missing in some places. Specifically, the functions `deposit()` and `getSharesByUnderlying()` do not check against `totalUnderlying == 0`, while the function `redeem()` does not check against `totalShares == 0`.

LowPossible Empty Market AttackOpen

The `CreditVault.sol` contract enables trading in a market through the `supportMarket()` function. This function adds the market corresponding to a `LPToken.sol` contract instance. However, no checks or initialization takes place within this function to ensure that the market is indeed ready to be traded. The exact impact of this issue is unclear because documentation or specification for this procedure is unavailable. The conditions and invariant that must hold for the market to be tradable is also unclear and not documented. Given the lack of information we have marked it as an Undetermined, as there is still the possibility of system failure due to a transaction being called to a market that has not been properly initialized.

LowRisks of Supporting Non-Standard ERC-20 TokensOpen

Supporting tokens with specific features such as fees, rebasing, pausable, upgradeable, blacklistable, or hooks on transfers could negatively impact the main flows of the system if no specific mitigation measure is enforced to limit the consequences.

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

  • src/libraries/TStorage.sol
  • src/NativeRouter.sol
  • src/libraries/ConstantsLib.sol
  • src/NativeRFQPool.sol
  • src/libraries/ReentrancyGuardTransient.sol
  • src/LPToken.sol
  • src/CreditVault.sol
  • src/libraries/ErrorsLib.sol

Part of Native v2’s security record

Native v2
Audits1 audit by 1 firmLast audit Jan 2025, by Quantstamp.
Critical findingsNo open critical findingsIn 1 report.
Open Native v2’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