Q2 2026 Security & Compliance Report67 incidents, $764M in losses, 88% from operational failures.
Get the report →

Audit name:

[SCA] AugmentLabs | Staking | Jan2023

Date:

Feb 25, 2023

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 AugmentLabs team for the collaborative engagement that enabled the execution of this Smart Contract Security Assessment.

AugmentLabs has developed a stablecoin protocol called AGC with an Automated Marketcap Comparison (AMCF). The protocol was constructed to be novel and resilient to attacks of all forms by addressing fundamental issues of existing designs and having dynamic systems that can change the underlying way in which the algorithmic system reacts to an attack vector, especially a massive depegging event.

titlecontent
PlatformEVM
LanguageSolidity
TagsERC20; Staking
Timeline13/01/2023 - 28/02/2023
Methodologyhttps://hackenio.cc/sc_methodology→

    Review Scope

    Repositoryhttps://github.com/augmentlabs-io/contracts→
    Commit87bbcbe571601c52cc6e9823558fc2f7115d0666

    Audit Summary

    Total9.3/10
    Security Score

    10/10

    Test Coverage

    84.94%

    Code Quality Score

    9/10

    Documentation Quality Score

    10/10

    29Total Findings
    29Resolved
    0Accepted
    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 AugmentLabs
    Audited ByHacken
    Websitehttps://augmentlabs.io/→
    Changelog20/01/2023 - Initial Review
    16/02/2023 - Second Review
    28/02/2023 - Third Review
    • Document

      Name
      Smart Contract Code Review and Security Analysis Report for AugmentLabs
      Audited By
      Hacken
      Changelog
      20/01/2023 - Initial Review
      16/02/2023 - Second Review
      28/02/2023 - Third Review

    System Overview

    AugmentLabs is a mixed-purpose ERC20/Stacking system with the following contracts:

    • AGC — upgradable ERC-20 token that mints all initial supply to a deployer. Minting and burning is allowed by the Minter on demand. It has the following attributes:

      • Name: AGC

      • Symbol: AGC

      • Differences from the ERC20 standard: the token is not transferable.

    • USC — upgradable ERC-20 token that mints all initial supply to a deployer. Minting is allowed by the Minter on demand. It has the following attributes:

      • Name: USC

      • Symbol: USC

      • Other parameters are default for the ERC20 standard

    • TokenController — an upgradable smart contract that will have MINTER_ROLE of AGC & USC to perform the redeem functionality between AGC/USC.

      • Has a safety switch.

      • Role-based authentication.

      • Can burn USC and mint AGC to a specific user address.

      • Can burn AGC and mint USC to a specific user address.

    • MasterChef — an upgradable smart contract that allows users to stake USDT and get USC rewards at a specified ROI/year.

      • Has a safety switch.

      • Can mint USC to yield rewards to pool stakers.

    Privileged roles

    • The MasterChef contact has a single owner role.

    • The TokenController contract has PAUSERROLE, UPGRADERROLE and REDEEMERROLE roles and must take the MINTERROLE of USC and AGC.

    • The MINTER_ROLE of AGC and USC can mint tokens on demand without any restrictions. The burn functions in USC are unprotected.

    Recommendations

    • The system relies on the security of the privileged roles’ private keys, which can impact the execution flow and security of the funds. We recommend those accounts to be at least ⅗ multi-sig.

    Executive Summary

    Documentation quality

    The total Documentation quality score is 10 out of 10.

    • A Whitepaper is provided.

    • NatSpec is included in the code.

    • Technical description and functional requirements are provided.

    Code quality

    The total Code quality score is 9 out of 10.

    • The development environment is configured.

    • 5 out of 103 tests are failing.

    Test coverage

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

    • Deployment and basic user interactions are covered with tests.

    • Negative cases coverage is present.

    Security score

    Upon auditing, the code was found to contain 1 critical, 5 high, 7 medium, and 16 low severity issues. Out of these, 29 issues have been addressed and resolved, leading to a Security score of 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.3. This score reflects the combined evaluation of documentation, code quality, test coverage, and security aspects of the project.

    Risks

    No substantial risks were identified.

    Findings

    F-2023-0265Token Supply Manipulation
    Status
    fixed
    Severity

    Critical
    F-2023-0270Data Inconsistency
    Status
    fixed
    Severity

    High
    F-2023-0269Undocumented Behavior
    Status
    fixed
    Severity

    High
    F-2023-0268Requirements Violation
    Status
    fixed
    Severity

    High
    F-2023-0267Requirements Violation
    Status
    fixed
    Severity

    High
    F-2023-0266Requirements Violation
    Status
    fixed
    Severity

    High
    F-2023-0277Best Practice Violation - Unchecked Transfer
    Status
    fixed
    Severity

    Medium
    F-2023-0276Using Block Number Attribute as a Proxy of Time
    Status
    fixed
    Severity

    Medium
    F-2023-0275Missing Functionality
    Status
    fixed
    Severity

    Medium
    F-2023-0274Undocumented Functionality
    Status
    fixed
    Severity

    Medium
    Code
    ―
    Title
    Status
    Severity
    F-2023-0265Token Supply Manipulation
    fixed

    Critical
    F-2023-0270Data Inconsistency
    fixed

    High
    F-2023-0269Undocumented Behavior
    fixed

    High
    F-2023-0268Requirements Violation
    fixed

    High
    F-2023-0267Requirements Violation
    fixed

    High
    F-2023-0266Requirements Violation
    fixed

    High
    F-2023-0277Best Practice Violation - Unchecked Transfer
    fixed

    Medium
    F-2023-0276Using Block Number Attribute as a Proxy of Time
    fixed

    Medium
    F-2023-0275Missing Functionality
    fixed

    Medium
    F-2023-0274Undocumented Functionality
    fixed

    Medium
    1-10 of 29 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:

    Scope Details

    Repositoryhttps://github.com/augmentlabs-io/contracts→
    Commit87bbcbe571601c52cc6e9823558fc2f7115d0666
    WhitepaperProvided→
    RequirementsProvided→
    Technical RequirementsProvided→

    Contracts in Scope

    contracts
    AGC.sol - contracts › AGC.sol
    Controller.sol - contracts › Controller.sol
    MasterChef.sol - contracts › MasterChef.sol
    USC.sol - contracts › USC.sol

    Disclaimer