REKT Info
There once was a trader who lost everything. Not just once — every time. While others flexed profits, he became a meme. But instead of rage-quitting, he built something greater: $REKT — the first meme token that rewards your losses. Built on Solana. Powered by pain. Fueled by memes. This is for everyone who’s ever said, “I’m down bad,” and meant it.
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 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:
- 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.
Ownership Privileges
- The admin can add new tokens to the whitelist.
- The admin can fund the program vault in the contract.
Note - This audit report consists of a security analysis of the loss-claim contract. This analysis did not include functional testing (or unit testing) of the token’s logic. Furthermore, we only audited the mentioned contract associated with this project. Other contracts related to this project were not audited by our team. We recommend investors conduct their own research before engaging with the token.
Files and details
Functions
public
/
State variables
public
/
Total lines
of code
/
Capabilities
Hover on items
/
Functions
public
/
State variables
public
/
Total lines
of code
/
Capabilities
Hover on items
/
Functions
public
/
State variables
public
/
Total lines
of code
/
Capabilities
Hover on items
/
Functions
public
/
State variables
public
/
Total lines
of code
/
Capabilities
Hover on items
/
Findings and Audit result
medium Issues | 4 findings
Resolved
#1 medium Issue
Uninitialized State Fields
The initialize function of the smart contract fails to set values for the treasury, reward_vault, and last_claim_time fields within the main StateAccount. Because the StateAccount struct derives the Default trait, any fields that are not explicitly assigned a value during initialization receive a default one. Consequently, the treasury and reward_vault public keys are incorrectly set to the System Program's address (11111111111111111111111111111111), and last_claim_time is set to 0. This creates a latent bug where the program's core state is stored with incorrect data from the moment of deployment, which would cause any future logic relying on these fields to fail or behave in unintended ways.
Resolved
#2 medium Issue
Global Cooldown Leads to Denial of Service
The contract's cooldown mechanism is implemented using a single, global last_claim_time variable that applies to all users. When any user executes a successful claim_loss transaction, this global timestamp is updated, initiating the cooldown period for the entire program. This design creates a critical Denial of Service (DoS) vulnerability. A malicious actor, or even a normal user, with the ability to make a valid claim can strategically time their transaction to occur just as the cooldown period expires. By doing so, they can perpetually reset the global timer, effectively preventing all other legitimate users from being able to successfully execute their own claims and interact with the contract's primary function.
Resolved
#3 medium Issue
Per-Wallet Claim Limit Is Not Enforced On-Chain
The contract fails to track the cumulative amount a user has claimed, instead only checking if a single claim's amount is below the bonus_cap_per_wallet. This delegates the responsibility of enforcing total withdrawal limits to the off-chain backend, creating a critical single point of failure. For example, if the backend_admin_key is ever compromised, an attacker can use it to sign an unlimited number of valid claim messages for the same wallet. They could sign a message for 100 tokens, which the contract would approve. Since the contract doesn't record that this user has claimed anything, the attacker can immediately sign another message for 100 tokens, and the contract will approve it again.
Resolved
#4 medium Issue
Incorrect Authorization Restricts Deposits to Admin Only
The fund_token function is critically flawed due to an incorrect authorization model that prevents it from serving its intended purpose as a public deposit mechanism. The function's account validation struct (FundToVesting) uses a has_one = authority constraint, which strictly requires the transaction signer to be the program's administrative authority. This means that only the program's admin can call the function, completely blocking regular users from depositing funds. This design is fundamentally incorrect for a public funding endpoint, as it prevents the community or stakeholders from supplying the contract's token vault. The issue is compounded by misleading naming (FundToVesting), suggesting a design that is misaligned with the function's simple token transfer logic.
low Issues | 1 findings
Resolved
#1 low Issue
Magic Number Used for Whitelist Capacity Check
The function checks if the whitelist is full by comparing the number of tokens against the hardcoded value 20. This is considered a "magic number" because the value's meaning is not self-evident, and it creates a maintenance risk. A constant, MAX_WHITELIST_TOKEN_COUNT, is already defined at the top of the program for this exact purpose and is used correctly in the initialize function, but it is not used here.
informational Issues | 1 findings
Resolved
#1 informational Issue
Potential Panic on Integer Overflow During Signature Verification
In the check_ed25519_data function, the length of the message payload (msg.len()) is converted from a usize to a u16 using the .unwrap() method. This method will cause the entire program to panic if the message length ever exceeds the u16 limit of 65,535 bytes. While this scenario is not practically possible in the contract's current implementation due to the small size of the signed message, the use of .unwrap() is a brittle design pattern. It creates a latent bug and forgoes robust error handling, which could become a functional issue if this utility code were ever reused in a different context with a larger message payload.