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.
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
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.
Token transfer can be locked
Owner can lock user funds with owner functions.
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 upgradeable
The contract uses a proxy pattern or similar mechanism, enabling future upgrades. This can introduce risks if the upgrade mechanism is not securely managed.
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:
- Specification Review: Analyze the provided specifications, source code, and instructions to fully understand the smart contract's size, scope, and functionality.
- Manual Code Examination: Conduct a thorough line-by-line review of the source code to identify potential vulnerabilities and areas for improvement.
- Specification Alignment: Ensure that the code accurately implements the provided specifications and intended functionalities.
- Test Coverage Assessment: Evaluate the extent and effectiveness of test cases in covering the codebase, identifying any gaps in testing.
- Symbolic Execution: Analyze the smart contract to determine how various inputs affect execution paths, identifying potential edge cases and vulnerabilities.
- Best Practices Evaluation: Assess the smart contracts against established industry and academic best practices to enhance efficiency, maintainability, and security.
- 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.
Smart Contract Analysis Statement
Contract Analysis
The MNRVesting contract implements a token distribution contract with per-beneficiary cliff and linear vesting schedules for the project token. Each beneficiary is added with a total allocation, a cliff, a vesting duration and a revocability flag; vested tokens are claimed by the beneficiary at any time. The contract is upgradeable and inherits the shared timelock base for access control, pausing, reentrancy protection and the upgrade timelock.
Ownership Privileges
The ownership of the contract has been assigned to role holders under the shared access-control base, with the root admin role held by a multisig in production. The owner retains full privileges including:
- Adding a beneficiary with a chosen allocation, cliff, vesting duration and revocability flag.
- Revoking a schedule that was created as revocable, which returns the unvested portion for reallocation.
- Pausing the admin operations of the contract during incident response.
- Proposing and executing an upgrade of the contract, subject to a forty-eight-hour timelock.
- The owner cannot pause or block beneficiary claims, which stay executable even while paused.
- The owner cannot revoke a schedule created as non-revocable.
- The owner cannot set a cliff or vesting duration beyond the fixed sanity bounds.
- The root admin role can only be transferred subject to a forty-eight-hour delay.
Security Features
The contract implements several positive security features:
- A reentrancy guard on the claim and revoke paths, with token transfers using the safe-transfer library.
- A pause model that only affects admin operations, so vested claims can never be frozen by a pauser.
- Upper sanity bounds on the cliff and vesting durations that prevent an irrecoverable lock from a mistyped value.
- A coverage check that counts already-released tokens, keeping the invariant that the contract can always honour every outstanding obligation.
Note - This Audit report consists of a security analysis of the MNRVesting smart contract. This analysis did not include economic analysis of the contract's tokenomics. Moreover, we only audited the main contract for the MNRVesting 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
Findings and Audit result
low Issues | 2 findings
Resolved
#1 low Issue
Beneficiary-add balance check over-restricted after legitimate releases
The post-state balance check previously required the contract balance alone to cover the full historical committed total, double-counting tokens that had already been released.
Acknowledged
#2 low Issue
Initializer is publicly callable on the proxy
The initializer can be called by any account on a freshly deployed proxy if the deployment does not bundle the call into the proxy-creation transaction.
informational Issues | 3 findings
Resolved
#1 informational Issue
Duration sanity bounds added - verified sound
New upper bounds on schedule durations prevent an irrecoverable lock of a non-revocable allocation caused by a mistyped value.
Pending
#2 informational Issue
Doc comment for the linear-vesting formula is slightly misleading
The comment on the internal vesting calculation describes the linear phase in a way that reads as if the cliff is subtracted twice, whereas the code already measures elapsed time from the end of the cliff. The code is correct; only the comment is ambiguous.
Resolved
#3 informational Issue
Pausing must not freeze vested token claims
The claim functions were previously pause-gated, which would let a pauser block beneficiaries from claiming vested tokens. The pause now only affects admin operations.