Delabs Adventure Pass Staking - Audit

CertiKCode version: not recorded (see the report)

CertiK reviewed Delabs Adventure Pass Staking (Delabs Adventure Pass Staking - Audit) on 29 Jun 2023: 9 findings, 0 critical; 4 marked fixed, 3 acknowledged, 2 open.

No open critical findings
Open the reportOpen Delabs Adventure Pass Staking’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings9

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

SeverityOpenAcknowledgedFixed
Critical000
High200
Medium000
Low034
LowLack of Storage Gap in Upgradeable ContractFixed

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

LowLogical issue about the `lock`Fixed

The `lock()` function allows adding a new `lockedPeriod` when the previous `lockedPeriod` has expired. However, the current implementation only replaces the old `lockedPeriod` with the new one while keeping the `startTime` unchanged, without taking into account the previous `lockedPeriod`. To correctly implement this feature, the new `lockedPeriod` should be added to the existing `stakingPosition`, that is, using the expression `stakingPosition.lockedPeriod += lockedPeriod` to replace the following implementations in the `_lock` function: ```solidity function _lock(address holder, uint256 tokenId, uint40 lockedPeriod) internal { ... stakingPosition.lockedPeriod = lockedPeriod; // convert to seconds ... } ```

LowMissing Emit EventsFixed

There should always be events emitted in the sensitive functions that are controlled by centralization roles.

LowUnlocked Compiler VersionFixed

The contract cited has an unlocked compiler version. An unlocked compiler version in the source code of the contract permits the user to compile it at or above a particular version. This, in turn, leads to differences in the generated bytecode between compilations due to differing compiler version numbers. This can lead to ambiguity when debugging, as compiler-specific bugs may occur in the codebase that would be hard to identify over a span of multiple compiler versions rather than a specific one.

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.

Part of Delabs Adventure Pass Staking’s security record

Delabs Adventure Pass Staking
Audits1 audit by 1 firmLast audit Jun 2023, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open Delabs Adventure Pass Staking’s security record

Security firm

CertiK

1,044 projects reviewed · 1,375 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