HydraMeshnet Info

The all-in-one radio meshnet solution for building blackout-resilient free market societies with secure digital cash payments in crisis regions and beyond.

HydraMeshnet Logo

Team and KYC Verification

The KYC verification for this project is currently in progress.

The team has submitted their information and verification is pending.

KYC Badge

TrustNet Score

The TrustNet Score evaluates crypto projects based on audit results, security, KYC verification, and social media presence. This score offers a quick, transparent view of a project's credibility, helping users make informed decisions in the Web3 space.

83.35
Poor Excellent

Real-Time Threat Detection

Real-time threat detection, powered by Cyvers.io, is currently not activated for this project.

This advanced feature provides continuous monitoring and instant alerts to safeguard your assets from potential security threats. Real-time detection enhances your project's security by proactively identifying and mitigating risks. For more information, click here.

Security Assessments

Select the audit
"Static Analysis Dynamic Analysis Symbolic Execution SWC Check Manual Review"
Contract address
0xDFb7...e844
Network
Arbitrum - Mainnet
License N/A
Compiler N/A
Type N/A
Language Solidity
Onboard date 2025/05/24
Revision date 2025/05/24

Summary and Final Words

No crucial issues found

The contract does not contain issues of high or medium criticality. This means that no known vulnerabilities were found in the source code.

Contract owner cannot mint

It is not possible to mint new tokens.

Contract owner cannot blacklist addresses.

It is not possible to lock user funds by blacklisting addresses.

Contract owner cannot set high fees

The fees, if applicable, can be a maximum of 25% or lower. The contract can therefore not be locked. Please take a look in the comment section for more details.

Contract cannot be locked

Owner cannot lock any user funds.

Token cannot be burned

There is no burning within the contract without any allowances

Ownership is not renounced

The owner retains significant control, which could potentially be used to modify key contract parameters.

Contract is not upgradeable

The contract does not use proxy patterns or other mechanisms to allow future upgrades. Its behavior is locked in its current state.

Scope of Work

This audit encompasses the evaluation of the files listed below, each verified with a SHA-1 Hash. The team referenced above has provided the necessary files for assessment.

The auditing process consists of the following systematic steps:

  1. Specification Review: Analyze the provided specifications, source code, and instructions to fully understand the smart contract's size, scope, and functionality.
  2. Manual Code Examination: Conduct a thorough line-by-line review of the source code to identify potential vulnerabilities and areas for improvement.
  3. Specification Alignment: Ensure that the code accurately implements the provided specifications and intended functionalities.
  4. Test Coverage Assessment: Evaluate the extent and effectiveness of test cases in covering the codebase, identifying any gaps in testing.
  5. Symbolic Execution: Analyze the smart contract to determine how various inputs affect execution paths, identifying potential edge cases and vulnerabilities.
  6. Best Practices Evaluation: Assess the smart contracts against established industry and academic best practices to enhance efficiency, maintainability, and security.
  7. Actionable Recommendations: Provide detailed, specific, and actionable steps to secure and optimize the smart contracts.

A file with a different Hash has been intentionally or otherwise modified after the security review. A different Hash may indicate a changed condition or potential vulnerability that was not within the scope of this review.

Final Words

The following provides a concise summary of the audit report, accompanied by insightful comments from the auditor. This overview captures the key findings and observations, offering valuable context and clarity.


Ownership Privileges 
  • The owner can create and configure presale rounds with arbitrary parameters.
  • The owner can end active rounds prematurely.
  • The owner can extend round durations arbitrarily.
  • The owner can initiate and cancel withdrawals of collected funds.
  • The owner can withdraw all collected stablecoins (USDT, USDC, DAI) after a delay.
  • The owner can set any arbitrary wallet address for fund collection.
  • The owner can refund unsold tokens from any round.
  • The owner can register and manage promoter addresses and their status.
  • The owner can pause and unpause all contract operations.
  • The owner can set slippage tolerance up to 20%.
  • The owner can process refunds to investors in batches.
  • The owner can transfer ownership to any address.

Note - This Audit report consists of a security analysis of the HydraMeshnet smart contract. This analysis did not include functional testing (or unit testing) of the contract’s logic. Moreover, we only audited one token contract for the HydraMeshnet team. Other contracts associated with the project were not audited by our team. We recommend investors do their own research before investing.

Files and details

Functions
public

/

State variables
public

/

Total lines
of code

/

Capabilities
Hover on items

/

Findings and Audit result

medium Issues | 5 findings

Resolved

#1 medium Issue
The owner can pause
HMESHPresale.sol
L1620-1626
Description

The Owner can pause the contract indefinitely, potentially locking user funds forever with no guarantee of when or if they will be accessible again. It is recommended that pausing cannot exceed 72 hours and allows anyone to unpause after the maximum duration, protecting users from indefinite fund locking.

Resolved

#2 medium Issue
Missing 'require' check(Potential honeypot)
HMESHPresale.sol
L1150-1156
Description

The owner can set any arbitrary address as the wallet address (excluding the zero address). If the owner sets the wallet address to a contract that cannot receive tokens, it could lead to a potential honeypot scenario where funds become permanently locked. While the function validates against a zero address, it fails to verify if the target address is capable of receiving tokens. Add validation to ensure the wallet can only be set to an EOA (Externally Owned Account), preventing potential fund locks from incompatible contract addresses.

Resolved

#3 medium Issue
Incorrect logic in Fund Withdrawal and Bonus Calculation Logic.
HMESHPresale.sol
L768-858
Description

The contract contains two major flaws: first, the withdraw function uses unbounded loops that will grow in gas cost, leading to a permanent denial-of-service that locks all owner funds forever. Second, the promo code system is exploitable, allowing a bonus from a single, small purchase to be unfairly applied to all subsequent larger purchases within the same round, enabling users to drain unearned tokens.

Resolved

#4 medium Issue
Logical Flaw in Promo Code System Allows Unfair Bonus Token Exploitation
HMESHPresale.sol
L868-979
Description

The vulnerability originates in the getClaimableAmount function. While other functions like _applyPromoCode correctly limit a promo code's use to a user's single, initial purchase, the getClaimableAmount function fails to honor this restriction. When calculating the user's claimable tokens, its logic only checks if a userPromoCode has been set for the user, not which specific purchase it was applied to. As a result, it incorrectly calculates the bonus percentage on the user's total accumulated purchase amount for the round, rather than just the initial amount bought with the code. This allows any user to receive a significantly larger bonus than they are entitled to.The exploit can be performed in a simple sequence. First, with a round active that has a 10% user bonus, an attacker makes a small "bait" purchase of just 1 token using a valid promo code, which sets their userPromoCode on file. Then, in the same round, the attacker makes a much larger "real" purchase of 1,000,000 tokens without a code, bringing their total amountBought to 1,000,001. Finally, when the attacker calls claimTokens, the flawed getClaimableAmount function sees that a userPromoCode exists and incorrectly calculates the 10% bonus on the entire 1,000,001 token balance. This results in the attacker receiving 100,000.1 bonus tokens instead of the 0.1 they were actually entitled to.

Resolved

#5 medium Issue
Vesting Period Overflow Prevents Common, Real-World Vesting Schedules.
HMESHPresale.sol
L293-354
Description

The vulnerability is in the createRound function, where the number of vesting periods is calculated and then cast to a uint8. A uint8 can only hold a maximum value of 255. This creates a critical and immediate limitation, making it impossible to create any vesting schedule with more than 255 distinct release periods. This is not a theoretical long-term problem; it breaks the contract for very common, standard vesting schedules, such as daily releases over a single year. The contract is therefore unable to fulfill basic, real-world business requirements, forcing a choice between vesting frequency and total duration. A project wants to create a round with a standard 1-year daily vesting schedule. They call createRound with vestingDuration_ set to 365 days and vestingTimeUnit_ set to 1 days. The function calculates the number of periods as uint8(365 / 1), which overflows and becomes 109. If the project provides the corresponding array of 365 release percentages, the subsequent require check will fail because it expects the array length to be 109. The transaction reverts, making it impossible to create this round. The only way to support a year-long schedule is to use a large vestingTimeUnit (e.g., 30 days), which severely restricts claim frequency for investors.

low Issues | 2 findings

Resolved

#1 low Issue
Missing Events Arithmetic (events-maths)
HMESHPresale.sol
L1620-1626
Description

Emit an event for critical parameter changes.

Resolved

#2 low Issue
Withdrawal Delay Mechanism Analysis
HMESHPresale.sol
L778-789
Description

There is a delay mechanism; 5 minutes is a relatively short time for users to notice the withdrawal initiation, react to any suspicious withdrawal attempts and take any preventive actions if needed. It is recommended to consider increasing the withdrawal delay(24 hours, a more reasonable delay).

informational Issues | 2 findings

Resolved

#1 informational Issue
Floating pragma solidity version
HMESHPresale.sol
L2
Description

Adding the constant version of solidity is recommended, as this prevents the unintentional deployment of a contract with an outdated compiler that contains unresolved bugs.

Resolved

#2 informational Issue
Inconsistent Event Parameter Naming
HMESHPresale.sol
L142-248
Description

Some events use the indexed keyword for parameters while others don't, leading to inconsistent event parameter indexing.