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.
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 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 TimelockUpgradeable contract implements an abstract base contract with multi-layer timelock protection that the project's upgradeable contracts inherit. It provides a forty-eight-hour delay on contract upgrades, a forty-eight-hour delay on emergency withdrawals, a forty-eight-hour delay on transfers of the root admin role, an asymmetric forty-eight-hour delay on grants of the upgrader role, an instant pause switch for incident response, and a reentrancy guard.
Ownership Privileges
The ownership of the contract has been structured across access-control roles, with the root admin role held by a multisig in production. The owner retains full privileges including:
- Proposing, cancelling and executing contract upgrades through the upgrader role, subject to a forty-eight-hour timelock.
- Proposing, cancelling and executing an emergency withdrawal of surplus native coin through the root admin role, subject to a forty-eight-hour delay.
- Granting the upgrader role through a two-step process with a forty-eight-hour delay.
- Pausing and unpausing through the pauser role for rapid incident response.
- The root admin role can only be transferred through a begin-and-accept flow with a forty-eight-hour delay and can never be set to the zero address.
- An upgrade target must exist as deployed code both when proposed and again when executed.
- An upgrade proposal and a pending upgrader-role grant both expire if not executed within their validity windows.
- An emergency withdrawal recipient is fixed at proposal time, so observers can predict the payee.
Security Features
The contract implements several positive security features:
- Three independent forty-eight-hour windows protecting upgrades, admin transfers and upgrader-role grants against a compromised key.
- Expiry on both upgrade proposals and pending role grants, so stale approvals cannot be executed later.
- A code-length re-check at upgrade execution time that closes the self-destruct-between-propose-and-execute window.
- A reentrancy guard on the emergency withdrawal and a bounded batch size on the emergency cancel path.
Note - This Audit report consists of a security analysis of the TimelockUpgradeable smart contract. This analysis did not include economic analysis of the contract's tokenomics. Moreover, we only audited the main contract for the TimelockUpgradeable 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
high Issues | 1 findings
Resolved
#1 high Issue
Admin transfers and role grants were not subject to the timelock
The base previously applied the timelock only to upgrade execution and emergency withdrawals; the default-admin transfer and role grants were instant.
medium Issues | 1 findings
Resolved
#1 medium Issue
Auto-renouncement of the upgrader role was not enforceable on-chain
The renouncement function trusted a caller-supplied list of role holders and set an irreversible completed flag regardless of how many holders were actually revoked, so the decentralisation guarantee could be silently bypassed by passing an empty or incomplete list.
low Issues | 3 findings
Resolved
#1 low Issue
Pending upgrader-role grants had no expiry
A scheduled grant previously remained valid indefinitely, so a forgotten pending grant for a now-undesired account could be completed long after it was intended.
Resolved
#2 low Issue
Grant idempotency and expiry hardening - verified sound
The grant override was reworked to be idempotent for existing holders and to expire stale pending grants. Reviewed for correctness.
Pending
#3 low Issue
Only the upgrader role grant is delayed - the other amplifying roles are still instant
The grant override applies the 48-hour delay only when granting the upgrader role. The vesting-admin, staking-admin and tier-manager roles can still be granted instantly by the default admin. A compromised default admin can grant itself the staking-admin role and immediately use the re-introduced admin rescue to seize staked funds, or grant the vesting-admin role and revoke a revocable schedule. The 3-of-5 multisig at the default-admin slot is the only defence-in-depth layer.
optimization Issues | 1 findings
Resolved
#1 optimization Issue
Loop counter increment
The batch-cancel loop counter previously used a postfix increment in a checked arithmetic context.
informational Issues | 2 findings
Pending
#1 informational Issue
Emergency withdraw inherited by the treasury bypasses the daily-limit and propose-execute flow for ETH
The treasury does not override the protected-balance hook, so it defaults to zero and the inherited emergency withdraw can move the entire ETH balance after the 48-hour emergency-withdraw delay, bypassing the daily withdrawal limit and the longer large-withdrawal delay of the propose-and-execute flow. This is default-admin only (a 3-of-5 multisig in production) but widens the operational surface beyond the carefully designed withdrawal path.
Resolved
#2 informational Issue
Base receive policy documentation
The base receive function is virtual and each child overrides it; the intended per-child policy is documented in the natspec.