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

Audit name:

[SCA] Neemo | Neemo-Staked-Astar | Aug2024

Date:

Sep 4, 2024

Table of Content

→Introduction
→Audit Summary
→System Overview
→Risks
→Findings
→Appendix 1. Severity Definitions
→Appendix 2. Scope
→Disclaimer

Want a comprehensive audit report like this?

Introduction

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

Neemo Finance is a non-custodial liquid staking protocol for Astar Network. It allows users to liquid stake their ASTR with Neemo Finance to support dApp staking. All while exercising complete control over their deposited ASTR.

Document

NameSmart Contract Code Review and Security Analysis Report for Neemo Finance
Audited ByAndy Cho
Approved ByPrzemyslaw Swiatowiec
Websitehttps://neemo.finance→
Changelog30/08/2024 - Preliminary Report
04/09/2024 - Final Report
PlatformAstar
LanguageSolidity
TagsStaking
Methodologyhttps://hackenio.cc/sc_methodology→
  • Document

    Name
    Smart Contract Code Review and Security Analysis Report for Neemo Finance
    Audited By
    Andy Cho
    Approved By
    Przemyslaw Swiatowiec
    Changelog
    30/08/2024 - Preliminary Report
    04/09/2024 - Final Report
    Platform
    Astar
    Language
    Solidity
    Tags
    Staking

Audit Summary

3Total Findings
3Resolved
0Accepted
0Mitigated

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

Documentation quality

  • Functional requirements are provided.

  • Technical description is provided.

Code quality

  • The code is clearly written.

  • The code follows best practices and official language by style guide.

  • The development environment is configured.

Test coverage

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

  • Deployment and basic user interactions are covered with tests.

  • Negative cases coverage is missed.

System Overview

Neemo Finance is a non-custodial liquid staking protocol for Astar Network. It allows users to liquid stake their ASTR with Neemo Finance to support dApp staking. All while exercising complete control over their deposited ASTR.

AcessController  — contract for managing access control roles and permissions.

DappStakingManager  — contract for handling core functionalities of the Neemo dAppStaking.

DepositWrapper  — contract for handling wrapped astar deposits.

PauseController  — contract for controlling pause and unpause actions based on access control roles.

Timelock  — implementation of OpenZeppelin's TimelockController for Neemo.

Privileged roles

  • NEEMO_DEV_ROLE: Role identifier for Neemo developers.

  • TIMELOCK_ROLE: Role identifier for timelock contract.

  • PAUSER_ROLE: Role identifier for pausers.

  • UNPAUSER_ROLE: Role identifier for unpausers.

  • GOVERNANCE_ROLE: Role identifier for governance entities.

Risks

Flexibility and Risk of Contract Upgrades: The token contract is upgradeable, allowing the admin to update the contract logic at any time. While this provides flexibility for addressing issues and evolving the project, it also introduces risks if upgrade processes are not properly managed or secured, potentially allowing for unauthorized changes that could compromise the project's integrity and security. This risk is mitigated by the team's use of a timelock with a 1-day delay.

Findings

F-2024-5604Unused Import
Status
fixed
Severity

Observation
F-2024-5603State Variables That Should Be Immutable
Status
fixed
Severity

Observation
F-2024-5602Redundant Storage Reads Leading to Gas Overhead
Status
fixed
Severity

Observation
Code
―
Title
Status
Severity
F-2024-5604Unused Import
fixed

Observation
F-2024-5603State Variables That Should Be Immutable
fixed

Observation
F-2024-5602Redundant Storage Reads Leading to Gas Overhead
fixed

Observation
1-3 of 3 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/neemo-finance/neemo-staked-astar→
Commit15e67dfb1d73299c0d07157d498c0941182717a3
Whitepaperhttps://docs.neemo.finance→
Technical RequirementsREADME.md

Contracts in Scope

src
AccessController.sol - src › AccessController.sol
DappStakingManager.sol - src › DappStakingManager.sol
DepositWrapper.sol - src › DepositWrapper.sol
PauseController.sol - src › PauseController.sol
Timelock.sol - src › Timelock.sol
libraries
Configs.sol - src › libraries › Configs.sol
PauseActions.sol - src › libraries › PauseActions.sol
Roles.sol - src › libraries › Roles.sol

Disclaimer