SparkStarter Info

SparkStarter didn’t just help us launch — they became true partners. Their strategic guidance, technical support, and hands-on approach set them apart. The Tax Vault System was a game-changer for building trust with our community. We’re excited to keep growing together.

SparkStarter Logo

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.

6.49
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
N/A
Network N/A
License N/A
Compiler N/A
Type N/A
Language Solidity
Onboard date 2025/09/02
Revision date 2025/09/02

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 anchor manager can create a new referrer anchor.
  • The owner can update the referral anchor.
  • The owner can update the anchor manager.
  • The anchor manager can set the user has a referee.
  • The anchor manager can increase the count for the wallet referral amount by 1.
  • The owner can refresh the fees from the price feed.
  • The authorized users can set rewards for individual pools for distribution.
  • The owner can set the authorized wallet.
  • The owner can update the fee receiver ETH and token address.
  • The owner can update the fee percentage to not more than 30%.
  • The owner can set the pool creation fee and pool additional week cost to any arbitrary value.
  • The owner can toggle the create pool setting for public users.
  • The owner can set the custom referral commission percentage for specific users.
  • The owner can update the dollar amount to any arbitrary value.

Note - This Audit report consists of a security analysis of the SparkStarter smart contract. This analysis did not include functional testing (or unit testing) of the contract’s logic. Moreover, we only audited the mentioned contract for the SparkStarter 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 | 4 findings

Pending

#1 medium Issue
Missing Non-reentrant check.
YapStarter.sol
L1128-1192
L1196-1215
Description

The contract contains critical reentrancy vulnerabilities in two of its core payable functions, createPool and deposit, due to a consistent violation of the Checks-Effects-Interactions (CEI) security pattern. In both cases, the functions make external calls to transfer Ether before finalizing their own internal state updates and accounting. The createPool function first sends a referral commission to a user-provided address, which could be a malicious contract. This contract can then immediately re-enter createPool to drain the msg.value by claiming multiple commissions before the primary fee is processed. Similarly, the deposit function sends a fee to the feeReceiverEth address before updating the pool's reward balance, creating a risk if the owner's account is ever compromised and the receiver is set to a malicious contract. Both functions prioritize external interactions over internal effects, leaving the contract's state inconsistent and open to exploitation during the external call.

Pending

#2 medium Issue
Incorrect accounting with Fee-on-Transfer Tokens Leads to Insolvency
YapStarter.sol
L1196-1215
Description

The deposit function's token accounting is critically flawed because it trusts the input amount for its internal calculations, a method that fails for fee-on-transfer (FoT) tokens. These tokens deduct a tax during the transfer, so the contract receives fewer tokens than the amount specified. This creates an immediate and permanent deficit, as the contract's recorded reward liability (amountForReward) becomes consistently higher than its actual token balance. For example, a user might deposit 1,000 FoT tokens, but the contract only receives 900 after the token's fee. The contract, however, still calculates its own fees and the final reward amount based on the original 1,000, creating an instant shortfall. This systemic issue guarantees insolvency for that token, as the deficit grows with each deposit, eventually leading to failed withdrawals and permanently locked funds.

Pending

#3 medium Issue
Logical Flaw Permanently Locks User Funds Added After an Initial Claim
YapStarter.sol
L1262-1276
Description

The contract's logic guarantees that user funds can be permanently locked due to a conflict between its reward-setting and claiming mechanisms. The setRewards function is additive (+=), allowing an admin to add funds to a user's balance at any time, even after a claim. However, claimByPool is a strict one-time-only action, as it permanently removes the pool from the user's userClaimablePools set after the first withdrawal. This creates a trap: if an admin adds more funds for a user to a pool from which they have already claimed, those new funds become impossible to access. The require(userClaimablePools[msg.sender].contains(poolId)) check will permanently block any future claim attempts, trapping the newly added rewards in the contract forever.

Pending

#4 medium Issue
Missing Input Validation
YapStarter.sol
L1333-1360
Description

A number of owner-only administrative functions are missing essential input validation, which exposes the protocol to significant risk from human error and operational mistakes. Functions that set critical financial parameters, such as updatePoolCreationFees and updateDollarAmounts, can be called with zero or negative values, which could inadvertently disable the protocol's fee mechanism. Conversely, they also lack sanity checks for upper bounds, meaning a simple typo could set an absurdly high fee, effectively bricking core functionality. Furthermore, functions that take address parameters, such as setReferralCommissionOverides and the test-only setPriceFeedForTesting, fail to check for the zero address, allowing for nonsensical state configurations. Finally, none of these critical state-changing functions emit events, which is a major transparency issue that makes it difficult for users and monitoring tools to track important administrative actions on-chain.

low Issues | 4 findings

Pending

#1 low Issue
Missing zero or dead address check.
YapStarter.sol
L970-974
L979-982
L987-990
L996-998
Description

It is recommended to check that the address cannot be set to zero or dead address.

Pending

#2 low Issue
Authorized Users Bypass Parameter Validation and Fee Payment in createPool
YapStarter.sol
L1128-1192
Description

The createPool function's control flow is structured in a way that allows authorized users to bypass all critical parameter validation and fee payment logic. The core of the function, including checks for _poolStartTime, _poolDuration, and the requirement to pay a creation fee, is nested inside an if(!authorized[msg.sender]) block. Consequently, if the caller is an authorized address, this entire block is skipped. This allows a privileged (or compromised) authorized address to create pools with invalid parameters, such as a start time in the past or a duration that violates the protocol's rules (e.g., less than one week). Furthermore, they can create these invalid pools without paying any of the required fees. This completely undermines the integrity and economic model of the pool creation process.

Pending

#3 low Issue
Ambiguous setRewards Function Creates High Risk of Operational Error
ya
L1236-1258
Description

The setRewards function contains a design flaw rooted in ambiguity. It uses additive logic (+=) to serve a dual purpose: setting a user's initial reward and later adding to it. This is extremely dangerous because the function cannot differentiate between these two distinct intentions, making it highly susceptible to catastrophic operational errors. For instance, a common mishap like a script being re-run after a timeout will be incorrectly interpreted by the contract as a command to add the full reward amount a second time, not to set it. Because the function's name (setRewards) is misleading and implies a safe, idempotent action, it creates a trap where a simple, single mistake can lead to the irreversible misallocation of the entire reward pool to the wrong recipients.

Pending

#4 low Issue
Missing events arithmetic
YapStarter.sol
L1318-1379
Description

It is recommended to emit all the critical parameter changes.

informational Issues | 1 findings

Pending

#1 informational Issue
Function that are not used (Dead code).
YapStarter.sol
L10
L144
L154
L161
L168
L182
L194
L228
L242
L256
L316
L330
L656
L751
L774
L805
L830
Description

Remove unused code.