Wayfinder

QuantstampFiles named in the report

Quantstamp reviewed Wayfinder on 29 May 2024: 6 findings, 0 critical; 5 marked fixed, 1 open.

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

Report hosted on certificate.quantstamp.com.

Trustblock does not review code.

Findings6

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

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium000
Low105
Low`lockDuration` Can Be Extended Beyond the `MAX_LOCK_DURATION`Fixed

In `handleInvokeEchelon()`, the lock duration check (shown below) may be inaccurate if the `MAX_LOCK_TIMESTAMP` is set to some time far in the future. ``` if ( lockDuration != type(uint256).max && lockDuration > MAX_LOCK_DURATION && lockDuration + block.timestamp > MAX_LOCK_TIMESTAMP ) { revert("Lock duration must be less than 1095 days"); } ``` In particular, the last two conditions `lockDuration > MAX_LOCK_DURATION && lockDuration + block.timestamp > MAX_LOCK_TIMESTAMP` implies that `lockDuration` can be larger than `MAX_LOCK_DURATION` as long as `lockDuration + block.timestamp` is less than `MAX_LOCK_TIMESTAMP`. This means as long as `MAX_LOCK_TIMESTAMP` is far into the future, say `10 years` ahead, then having a `lockDuration` of `5 years` will still pass this check, contradicting the revert statement `revert("Lock duration must be less than 1095 days");` A similar issue exists in `extendDeposit()`.

LowFunction Visibility OptimizationFixed

The `handleInvokeEchelon()` function is marked as `public`, but it is only intended to be called by the `primeToken` contract.

LowLack of SafeERC20 UsageFixed

The `withdrawDeposits()` function directly transfers `PRIME` tokens using `primeToken.transfer()`, which does not provide any safety checks and could lead to unexpected behavior if the token contract is not compliant with the ERC20 standard.

LowPotential Denial of Service and Gas OptimizationFixed

The `withdrawDeposits()` function transfers `PRIME` tokens within a loop, which could lead to high gas consumption and potentially cause a denial of service if there are a large number of deposits to withdraw.

LowUnnecessary ImportFixed

The contract imports `Ownable2Step` and `Ownable` from OpenZeppelin, but they are not being used in the contract.

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

  • PrimeCaching.sol

Part of Wayfinder’s security record

Wayfinder
Audits2 audits by 1 firmLast audit Mar 2025, by Quantstamp.
Critical findingsNo open critical findingsAcross 2 reports.
Open Wayfinder’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