Q1 2026 Security & Compliance Report44 incidents, $482M in losses, insights from 11 industry leaders.
Read the report

Audit name:

[SCA] Dexponent | Staking | Mar2024

Date:

Apr 22, 2024

Table of Content

Introduction
Audit Summary
Document Information
System Overview
Executive Summary
Risks
Findings
Appendix 1. Severity Definitions
Appendix 2. Scope
Disclaimer

Want a comprehensive audit report like this?

Introduction

We express our gratitude to the Dexponent team for the collaborative engagement that enabled the execution of this Smart Contract Security Assessment.

Dexponent emerges as an institutional-grade liquid staking platform designed to cater to institutions' distinct needs. It ensures clean staking practices, employs a non-custodial approach, separates funds, and introduces clETH, enabling instant liquidity for staked ETH. Dexponent also implements Account Abstraction for enhanced security and offers diverse utilities through clETH, presenting a comprehensive solution for institutions entering the liquid staking space.

titlecontent
PlatformEVM
LanguageSolidity
TagsStaking
Timeline21/03/2024 - 22/04/2024
Methodologyhttps://hackenio.cc/sc_methodology

    Review Scope

    Repositoryhttps://gitlab.ardourlabs.com/dexponent/smart-contracts/staking
    Commit694381d07ab9f2dab336afc54a8bc7e7aa4e42c6

    Audit Summary

    Total9/10
    Security Score

    10/10

    Test Coverage

    84.26%

    Code Quality Score

    8/10

    Documentation Quality Score

    10/10

    18Total Findings
    16Resolved
    2Accepted
    0Mitigated

    The system users should acknowledge all the risks summed up in the risks section of the report

    Document Information

    This report may contain confidential information about IT systems and the intellectual property of the Customer, as well as information about potential vulnerabilities and methods of their exploitation.

    The report can be disclosed publicly after prior consent by another Party. Any subsequent publication of this report shall be without mandatory consent.

    Document

    NameSmart Contract Code Review and Security Analysis Report for Dexponent
    Audited ByMax Fedorenko, Roman Tiutiun
    Approved ByGrzegorz Trawinski
    Websitehttps://dexponent.com/
    Changelog27/03/2024 - Preliminary Report
    22/04/2024 - Final Report
    • Document

      Name
      Smart Contract Code Review and Security Analysis Report for Dexponent
      Audited By
      Max Fedorenko, Roman Tiutiun
      Approved By
      Grzegorz Trawinski
      Changelog
      27/03/2024 - Preliminary Report
      22/04/2024 - Final Report

    System Overview

    Dexponent is a staking protocol with the following contracts:

    • ClEth.sol - the contract operates as an ERC20 token but with expanded functionalities tailored for minting, burning, pausing functionalities, managing rewards, and assigning roles to other contracts or addresses.

    • TokenProxy.sol - the contract serves as a proxy for interacting with another contract while enabling transparent upgrades.

    • WClETH.sol - the contract is an ERC20 token with additional functionalities inherited from TokenStorage, OwnableUpgradeable, and PausableUpgradeable.

    • StakeHolder.sol - the contract serves as a secure holding space, acting as an intermediary or escrow for the Ethereum (ETH) staked by individual users.

    • StakingMaster.sol - the contract is the central contract of the staking system. It handles the logic for users staking ETH, managing their stakes, unstake, and interacting with the CLETH token and individual StakeHolder contracts.

    • StakingMasterStorage.sol - the contract defines storage variables and mappings used by a staking master contract.

    • Event.sol -  contract declares several events used to emit notifications about different actions.

    • TokenStorage.sol - abstract contract defines storage variables and emits an event.

    • LoanLogic.sol - the contract facilitates the management of loans and collateral within a lending system. It includes functions for creating loans, repaying loans, calculating loan parameters such as interest rates and maximum loan amounts, and liquidating collateral.

    • LoanStorage.sol - contract serves as a storage contract holding all state variables and structures related to loans and collateral within a lending system.

    Privileged roles

    • The owner of the LoanLogic.sol contract can update the CLETH price.

    • The owner of the StakeHolder.sol contract can be deposited to Figment.

    • The owner of the StakingMaster.sol contract can update the withdrawal status, claim a reward for Wcleth, and claim a reward for Cleth.

    Executive Summary

    Documentation quality

    The total Documentation Quality score is 10 out of 10.

    Code quality

    The total Code Quality score is 8 out of 10.

    • Code contains redundant code.

    Test coverage

    Code coverage of the project is 84.26% (branch coverage).

    Security score

    Upon auditing, the code was found to contain 3 critical, 1 high, 5 medium, and 0 low severity issues. After the retest, most of the previously identified issues were resolved, leading to a security score 10 out of 10.

    All identified issues are detailed in the “Findings” section of this report.

    Summary

    The comprehensive audit of the customer's smart contract yields an overall score of 9. This score reflects the combined evaluation of documentation, code quality, test coverage, and security aspects of the project.

    Risks

    Admin might update the implementation of the Staking and Loan Logic anytime.

    Admin approval is needed to unstake the funds.

    Operations with CLETH token might be paused by admin.

    Admin is responsible for accruing rewards individually to for all the stakers.

    The Price Oracle which is used by the Loan Logic contract is set by the admin and is out of scope.

    Findings

    Code
    Title
    Status
    Severity
    F-2024-2134Unfinalized code block
    fixed

    Critical
    F-2024-2131Fund Lock in LoanLogic Contract During liquidateCollateral Process
    fixed

    Critical
    F-2024-1746Liquidating Is Not Possible If The Borrower Do Not Approve Enough Tokens
    fixed

    Critical
    F-2024-1699Maximum Deposit Requirement Violation
    fixed

    High
    F-2024-2136Lack Of Validation For The Oracle Data
    fixed

    Medium
    F-2024-2120Mismatch Between Documentation and Implementation
    fixed

    Medium
    F-2024-1748Possible Discrepancy Between The Actual Contract Balance and Recorded Balance
    fixed

    Medium
    F-2024-1745Admin Might 'burn' Tokens From Any Address
    fixed

    Medium
    F-2024-1698Amount of Unstaked Tokens Is Not Deducted From The Staked Amount
    fixed

    Medium
    F-2024-2920Admin Can Initiate clETH Token Minting
    accepted

    Observation
    1-10 of 18 findings

    Identify vulnerabilities in your smart contracts.

    Appendix 1. Severity Definitions

    When auditing smart contracts, Hacken is using a risk-based approach that considers Likelihood, Impact, Exploitability and Complexity metrics to evaluate findings and score severities.

    Reference on how risk scoring is done is available through the repository in our Github organization:

    Severity

    Description

    Critical
    Critical vulnerabilities are usually straightforward to exploit and can lead to the loss of user funds or contract state manipulation.

    High
    High vulnerabilities are usually harder to exploit, requiring specific conditions, or have a more limited scope, but can still lead to the loss of user funds or contract state manipulation.

    Medium
    Medium vulnerabilities are usually limited to state manipulations and, in most cases, cannot lead to asset loss. Contradictions and requirements violations. Major deviations from best practices are also in this category.

    Low
    Major deviations from best practices or major Gas inefficiency. These issues will not have a significant impact on code execution, do not affect security score but can affect code quality score.
    • Severity

      Critical

      Description

      Critical vulnerabilities are usually straightforward to exploit and can lead to the loss of user funds or contract state manipulation.

      Severity

      High

      Description

      High vulnerabilities are usually harder to exploit, requiring specific conditions, or have a more limited scope, but can still lead to the loss of user funds or contract state manipulation.

      Severity

      Medium

      Description

      Medium vulnerabilities are usually limited to state manipulations and, in most cases, cannot lead to asset loss. Contradictions and requirements violations. Major deviations from best practices are also in this category.

      Severity

      Low

      Description

      Major deviations from best practices or major Gas inefficiency. These issues will not have a significant impact on code execution, do not affect security score but can affect code quality score.

    Appendix 2. Scope

    The scope of the project includes the following smart contracts from the provided repository:

    Contracts in Scope

    contracts
    core
    ClEth.sol - contracts › core › ClEth.sol
    TokenProxy.sol - contracts › core › TokenProxy.sol
    Proxy.sol - contracts › core › Proxy.sol
    WClETH.sol - contracts › core › WClETH.sol
    base
    StakeHolder.sol - contracts › core › base › StakeHolder.sol
    StakingMaster.sol - contracts › core › base › StakingMaster.sol
    StakingMasterStorage.sol - contracts › core › base › StakingMasterStorage.sol
    events
    Event.sol - contracts › core › base › events › Event.sol
    storage
    TokenStorage.sol - contracts › core › base › storage › TokenStorage.sol
    loanLogic.sol - contracts › core › base › loanLogic.sol
    loanStorage.sol - contracts › core › base › loanStorage.sol

    Disclaimer