TRUST Summit | Nov 3, 2025 | NYCWhere decision-makers define the next chapter of secure blockchain adoption.
Learn more

Audit name:

[SCA] Sensay | Token | Mar2024

Date:

Apr 10, 2024

Table of Content

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

Want a comprehensive audit report like this?

Introduction

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

Sensay is dedicated to creating a seamless integration between the digital and physical worlds, utilizing cutting-edge technology to develop personalized digital replicas.

titlecontent
PlatformEVM
LanguageSolidity
TagsFungible Token
Timeline25/03/2024 - 26/03/2024
Methodologyhttps://hackenio.cc/sc_methodology

    Review Scope

    Repositoryhttps://github.com/sensay-io/smart-contracts
    Commit01c95d6

    Audit Summary

    Total10/10
    Security Score

    10/10

    Test Coverage

    0%

    Code Quality Score

    10/10

    Documentation Quality Score

    10/10

    0Total Findings
    0Resolved
    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 Sensay
    Audited ByIvan Bondar
    Approved ByGrzegorz Trawinski
    Websitehttps://www.snsy.ai/
    Changelog27/03/2024 - Final Report
    • Document

      Name
      Smart Contract Code Review and Security Analysis Report for Sensay
      Audited By
      Ivan Bondar
      Approved By
      Grzegorz Trawinski
      Changelog
      27/03/2024 - Final Report

    System Overview

    The Sensay token (SNSY) is a cutting-edge digital asset designed for operation on the Ethereum blockchain. It incorporates the LayerZero Omnichain Fungibility (OFT) protocol, which allows for efficient and seamless cross-chain token transfers. The Sensay token is crafted to address the limitations of traditional blockchain bridges, offering a more flexible and interoperable solution.

    Token Specifications:

    • Token Name: Sensay

    • Symbol: SNSY

    • Decimal Precision: 18

    • Total Supply: 10 Billion (10,000,000,000) SNSY Tokens

    Privileged roles

    Owner :

    • Delegate Management (setDelegate Function)

      • Assigns a delegate who can implement custom configurations on behalf of the contract owner.

      • The delegate gains the ability to manage critical tasks, including setting configurations and MessageLibs, and handling payload-related operations for the OFT.

      • Enables flexible management of the token's cross-chain functionalities.

    • Cross-Chain Communication Setup (setPeer Function)

      • Opens the messaging channel and connects the OFT deployment to different blockchain networks.

      • Inputs:

        • _eid: The endpoint ID for the destination chain where the other OFT contract resides.

        • _peer: The address of the destination OFT contract in bytes32 format.

      • Essential for enabling the OFT to start receiving messages from other chains, a critical step in establishing cross-chain functionality.

    Enforcement of Execution Options (setEnforcedOptions Function)

    • Specifies mandatory execution options to ensure the application behaves as expected during user interactions.

    • Input:

      • EnforcedOptionParam[], a struct defining execution options per message type and destination chain.

    • Provides control over how the token operates across chains.

    Message Inspection Setup (setMsgInspector Function)

    • Sets the address of the message inspector for the OFT, which is an optional role.

    • The message inspector can examine 'message' and 'options' if enabled.

    • Options:

      • Set to address(0) to disable the message inspector.

      • Set to a specific contract address to enable and define its behavior.

    • Offers an additional layer of inspection for cross-chain messages.

    Transfer of Ownership (transferOwnership Function)

    • This function enables the current owner of the contract to transfer ownership to a new address. It's a key aspect of the contract's governance.

    • Transferring ownership is a significant action as it involves handing over control of the contract's critical administrative functions. This includes the ability to set delegates, configure cross-chain communication, enforce execution options, and set up a message inspector.

    Executive Summary

    Documentation quality

    The total Documentation Quality score is 10 out of 10.

    • Functional requirements are detailed.

      • Project overview is detailed

      • All roles in the system are described.

      • Use cases are described and detailed.

      • For each contract, all futures are described.

      • All interactions are described.

    • Technical description is limited.

      • Run instructions are provided.

      • Technical specification is provided.

      • The NatSpec documentation is sufficient.

    Code quality

    The total Code Quality score is 10 out of 10.

    Test coverage

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

    • Tests are not provided.

    Security score

    Upon auditing, the code was found to contain 0 critical, 0 high, 0 medium, and 0 low severity issues, 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 10.0. This score reflects the combined evaluation of documentation, code quality, test coverage, and security aspects of the project.

    Risks

    Centralization of Initial Supply: The contract mints the entire initial supply of 10 billion tokens to the deployer's address. This concentration of tokens in a single address can pose significant risks in terms of centralization and potential manipulation.

    Lack of On-Chain Enforcement of Tokenomics: The provided tokenomics outline a detailed allocation plan (e.g., Public Sale, Platform Development, Team and Advisors, etc.). However, the current smart contract implementation does not enforce these allocations on-chain. Without on-chain enforcement, there's no guarantee that the tokens will be distributed according to the stated tokenomics.

    Vesting and Lock-up Periods: Tokenomics mention specific vesting and lock-up periods for different stakeholders (e.g., Team and Advisors, Future Team). However, these restrictions are not coded into the contract. The lack of on-chain mechanisms to enforce vesting schedules and lock-up periods means that large amounts of tokens could potentially be moved or sold earlier than intended, impacting the token's market stability.

    Reliance on External Protocols: The token relies on Layer Zero's OFT for cross-chain functionality. Any vulnerabilities or issues in the Layer Zero protocol could directly impact the Sensay token. Cross-chain transfers also add complexity, which can introduce additional points of failure or security considerations.

    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

    sensay.sol - sensay.sol

    Disclaimer