Web3 · Smart Contract Audit

WaveLength Security Audit

softstack completed a smart contract audit of WaveLength's Protocol in October 2022, reporting 6 findings (1 medium, 2 low and 3 informational). The full report is published in the softstack public audit archive.

Key facts

Client
WaveLength
Completed
Languages
Solidity, JavaScript
Commit
7fb66f98ace7

About the project

WaveLength was a decentralised exchange and liquidity hub for the Velas network, built on Balancer V2 technology. It offered weighted liquidity pools and automated index funds that rebalanced holdings while earning trading fees for liquidity providers. The wavelength.exchange domain is now listed for sale and the exchange no longer appears to operate.

Scope

Source repositorygithub.com/wavelength-velas/WaveLength-Contracts

Components reviewed

13 modules · 13 files
  1. WeightedPool2TokensFactory.sol
  2. WAVEToken.sol
  3. Authorizer.sol
  4. WAVEMasterChef.sol
  5. AaveLinearPoolFactory.sol
  6. WeightedPoolFactory.sol
  7. Timelock.sol
  8. Vault.sol
  9. MasterChefOperator.sol
  10. NoProtocolFeeLiquidityBootstrappingPoolFactory.sol
  11. StablePoolFactory.sol
  12. truffle-config.js
  13. hardhat.config.js

Findings

0Critical
0High
1Medium
2Low
3Informational

0 of 6 findings resolved before the final report.

IDTitleSeverityStatus
6.2.1Signature Malleability

The function ecrecover allows you to convert a valid signature into a different valid signature without requiring knowledge of the private key.

Mediumacknowledged
6.2.2Old And Non-Constant Solc Pragma ^0.7.0

The solc pragma ^0.7.0 is old and non-constant. Using an outdated compiler version can be problematic especially if there are publicly disclosed bugs and issues that affect the current compiler version.

Lowacknowledged
6.2.3Custom Errors To Save Gas

The contract was found to be using revert() statements. Since Solidity v0.8.4, custom errors have been introduced which are a better alternative to the revert.

Lowacknowledged
6.2.4Floating Pragma Version Identified

It is recommended to specify a fixed compiler version to ensure that the bytecode produced does not vary between builds. This is especially important if you rely

Informationalacknowledged
6.2.5Flatted Files

The solidity project files have been flatted which makes the review, modification, updates in the future quite hard.

Informationalacknowledged
6.2.6Use Of SafeMath Library

SafeMath library is found to be used in the contract. This increases gas consumption than traditional methods and validations if done manually.

Informationalacknowledged

About this engagement

A smart contract audit reviews on-chain code for flaws an attacker could exploit. Engineers trace how assets move through the contracts, check who can call privileged functions, and test the arithmetic, external calls and upgrade paths. Each finding is rated by severity, and fixes are re-checked before the final report.

How softstack runs smart contract audits

Methodology

Review process

  1. Scoping and threat modelling

    The commit hash is frozen and the attack surface is mapped: asset flows, trust assumptions, privileged roles and the external systems the code depends on.

  2. Automated analysis

    Static analysers sweep the full codebase to surface known weakness patterns, unreachable states and deviations from established conventions.

  3. Manual code review

    Independent engineers read the code line by line, concentrating on business logic, access control, arithmetic and the handling of external calls.

  4. Adversarial testing

    Property-based fuzzing and invariant tests attack the assumptions the protocol relies on, targeting states that ordinary unit tests never reach.

  5. Reporting

    Every finding is documented with a severity rating, its impact, the steps to reproduce it and a concrete remediation the team can act on.

  6. Remediation verification

    Submitted fixes are re-reviewed against the original finding, and the final report records the resolved state of each one.

Standards and references

  • SWC RegistrySmart Contract Weakness Classification
  • CWECommon Weakness Enumeration

FAQ

WaveLength was audited by softstack GmbH, a German Web3 security and software company based in Flensburg and certified to ISO/IEC 27001 by TÜV SÜD. softstack completed a smart contract audit for WaveLength in October 2022. The full report is linked on this page and published in the softstack public audit archive.

The review reported 6 findings: 1 medium, 2 low and 3 informational. 0 of 6 were resolved or mitigated before the final report.

13 source files were reviewed in github.com/wavelength-velas/WaveLength-Contracts at commit 7fb66f9. The published report lists every file covered.

This report covers the code as reviewed in October 2022 at commit 7fb66f9. Any code changed after that point is outside the reviewed scope.

Related audits

Browse all security audits

Disclaimer

This audit represents a point-in-time security assessment of the reviewed codebase and is intended for informational purposes only. While Softstack applies industry-standard security review methodologies, no audit can guarantee the absence of vulnerabilities, bugs, or other security risks. This report does not constitute financial, legal, regulatory, or investment advice, nor does it endorse the project, its business model, products, or services. Security is an ongoing process, and we strongly recommend conducting a new assessment following any material code changes or at least every 6 months to address newly emerging threats, vulnerabilities, and ecosystem developments.