Socrates v2 Audit

CertiKFiles named in the report

CertiK reviewed Socrates (Socrates v2 Audit) on 4 Oct 2023: 6 findings, 0 critical; 3 acknowledged, 3 open.

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

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings6

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

SeverityOpenAcknowledgedFixed
Critical000
High020
Medium010
Low300
LowLack of Storage Gap in Upgradeable ContractOpen

There is no storage gap preserved in the `ExternalEarlyBird` base contract. Any logic contract that acts as a base contract that needs to be inherited by other upgradeable child should have a reasonable size of storage gap preserved for the new state variable introduced by the future upgrades.

LowPotential Cross-Chain Replay AttackOpen

Signed messages are not properly verified with the current chain ID, thus allowing attackers to perform replay attacks across chains. Hardcoded or cached chain ID values are also vulnerable since a hard fork may occur and change the chain ID in the future. ```solidity=50 require(signerAddress == ecrecover(messageDigest, v, r, s), "Socrates: Signature mismatch"); ``` - Calling `ecrecover` with a hash that does not properly include the chain ID.

LowUnnecessary Storage Read Access in For LoopOpen

The for loop contains repeated storage read access in the condition check. Given that the ending condition does not change in the for loop, the repeated storage read is unnecessary, and its associated high gas cost can be eliminated. ```solidity=76 for (uint256 i = 1; i < portions.length; i++) { ``` Loop condition `i < portions.length` accesses the `length` field of a storage array. --- ```solidity=103 for (uint256 i = 0; i < portions.length; i++) { ``` Loop condition `i < portions.length` accesses the `length` field of a storage array.

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

  • contracts/v2/SocratesGenesisPen.sol
  • contracts/v2/EarlyBirdControllor.sol
  • contracts/v2/SoulBoundPen.sol
  • contracts/commons/TimeLockOwnable.sol
  • contracts/commons/ExternalEarlyBird.sol
  • contracts/v2/ClaimBox.sol
  • contracts/batchTransfer/BatchTransfer.sol
  • contracts/commons/EarlyBird.sol
  • contracts/721nft/TheWholeUniverseFlickersForYou.sol

Part of Socrates’s security record

Socrates
Audits1 audit by 1 firmLast audit Oct 2023, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open Socrates’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