31Third - Diff - Update

QuantstampFiles named in the report

Quantstamp reviewed 31Third (31Third - Diff - Update) on 4 Apr 2024: 3 findings, 0 critical; 2 marked fixed, 1 acknowledged.

No open critical findings
Open the reportOpen 31Third’s security record

Report hosted on certificate.quantstamp.com.

Trustblock does not review code.

Findings3

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

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium000
Low012
LowIndex Event Parameters for Improved Application MonitoringFixed

Application monitoring can be improved by indexing specific parameters emitted in an event. By indexing event parameters, off-chain systems can more easily filter contract logs by the indexed data. The following event parameters could benefit from indexing: 1. `GenericDifferentSpenderAdapter`: 1. `name`, `handlerAddress`, and `spenderAddress` in the event `GenericDifferentSpenderAdapterDeployed`. 2. `GenericBasicAdapter`: 1. `name` and `handlerAndSpenderAddress` in the event `GenericBasicAdapterDeployed`.

LowOptimizations and ImprovementsFixed

Certain changes can be made in order to improve the gas-efficiency of the contracts: 1. Use custom errors instead of `require()`. 2. The two contracts in scope are duplicates. Code duplication is detrimental as it leads to the maintenance of the same issues in different locations, and is therefore, error-prone. In the case of Solidity, it might also lead to larger bytecode which might hinder the deployment of the system. Consider using inheritance or only the `GenericDifferentSpenderAdapter` contract and slightly modify the constructor to manage the case of the `GenericBasicAdapter`.

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

  • contracts/trading/adapter/GenericDifferentSpenderAdapter.sol
  • contracts/trading/adapter/GenericBasicAdapter.sol

Part of 31Third’s security record

31Third
Audits2 audits by 1 firmLast audit Apr 2024, by Quantstamp.
Critical findingsNo open critical findingsAcross 2 reports.
Open 31Third’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