TapDaDoge Info

TapDaDoge promises an easily accessible, endlessly entertaining and rewarding experience. The player (You) takes control of their NFT Characters to jump over obstacles and in the process, earns various types of Points, which can be used in exchange for more goodies. The game is meant to have simple and intuitive mechanics that are tough to master but highly rewarding. Now, let’s get acquainted with our main cast of Characters (NFTs). Below are a limited sample of our Furry Friends, also known as “Doges”. You’ll notice that they have each been assigned a designation (e.g. “Unique”, “Legendary”, et cetera.).

TapDaDoge 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.

0.02
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/03/28
Revision date 2025/03/28

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
IDO.sol
  • The owner can set the vesting parameters.
  • The owner can update the core parameters that define the IDO process.
  • The owner can update the token payment address.
  • The owner can update the treasury address.
  • The owner can toggle the claim setting.
  • The owner can update the token address.
  • The owner can withdraw ETH and tokens from the contract.

Note - This Audit report consists of a security analysis of the TapDaDoge 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 TapDaDoge 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

high Issues | 1 findings

Pending

#1 high Issue
The owner can lock claim
IDO.sol
L90-93
Description

The release function's dependency on the owner-controlled isClaimed flag creates a severe centralization risk. This design forces users to rely entirely on the owner's willingness to enable token claiming, regardless of whether vesting schedules have begun. If the owner becomes unavailable, malicious, or faces legal challenges, users' tokens could remain permanently locked despite having rightfully purchased them. This contradicts blockchain's trustless principles and introduces a single point of failure. To mitigate this, replace the manual flag with an automatic time-based mechanism: require(block.timestamp >= startRelease, "Vesting not started"); This ensures claiming activates automatically when vesting begins, removing owner dependency while maintaining schedule compliance.

medium Issues | 5 findings

Pending

#1 medium Issue
No Check for Ongoing IDO
IDO.sol
L73-80
Description

The setIDO function lacks critical timing validation, allowing the owner to modify essential IDO parameters (start/end times, token price, purchase limit, and cap) at any point—including during an active token sale. This creates a significant security and trust issue, as participants who have already contributed funds based on specific terms could suddenly face altered conditions without their consent or knowledge. For example, the owner could extend the IDO end time to allow more participants, lower the token price to favor late participants, or reduce the cap to prevent further contributions unexpectedly. To mitigate this vulnerability, the contract should implement a time-based restriction that prevents parameter modifications once the IDO has commenced, with code such as: require(block.timestamp < startTime, "IDO already started");. Additionally, implementing a timelock mechanism for parameter changes would provide transparency by giving users advance notice of pending modifications, allowing them to decide whether to participate based on the updated terms before the changes take effect.

Pending

#2 medium Issue
Missing 'isContract' check.
IDO.sol
L82-84
L95-98
Description

The contract lacks a validation check to ensure that specific parameters are contract addresses. Without this check, there is a risk that non-contract addresses (such as externally owned accounts, or EOAs) could be mistakenly set for parameters intended to reference other contracts. This could lead to failures in executing critical interactions within the contract, as EOAs do not support contract-specific functions. To mitigate this, Implement a validation check to ensure that parameters designated as contract addresses are verified as such. This can be done using Solidity’s Address library function isContract, which checks if an address has associated contract code.

Pending

#3 medium Issue
No Validation for Purchase Limit Against Cap
IDO.sol
L73-80
Description

The setIDO function fails to validate the relationship between the purchase limit and total cap, creating a potential inconsistency where the individual purchase limit could be set higher than the total cap (_purchaseLimit > _cap). This logical inconsistency could lead to confusing behavior and undermines the purpose of having separate limits. For instance, if the purchase limit is set to 1000 tokens while the cap is only 500 tokens, the first participant attempting to contribute the maximum allowed amount would trigger the "Total sale cap exceeded" error from the verifyAmount modifier, despite staying within their individual limit. This contradiction creates a poor user experience and could lead to transaction failures that are difficult for users to understand. To mitigate this issue, the function should include an explicit validation check that ensures the purchase limit never exceeds the total cap: require(_purchaseLimit <= _cap, "Purchase limit cannot exceed total cap");. This validation should be implemented both when setting these parameters individually and when updating them together, ensuring logical consistency between these two related constraints at all times.

Pending

#4 medium Issue
Owner Can Withdraw Tokens Mid-IDO
IDO.sol
L105-108
Description

The withdrawToken function represents a severe centralization and security risk by allowing the contract owner to extract any ERC20 token from the contract at any time, including the main IDO token that participants have rightfully purchased. This unrestricted withdrawal capability undermines the entire purpose of the IDO contract, as the owner could simply drain all tokens before users have a chance to claim them, even during an active sale or vesting period. There are no safeguards preventing this action, no checks against the token address, and no transparency through event emission. This vulnerability effectively places complete trust in the owner, contradicting the trustless nature blockchain systems should maintain. To mitigate this risk, the function should be modified to explicitly prevent withdrawal of the primary IDO token (require(_token != token, "Cannot withdraw IDO token"), implement timing restrictions that only permit withdrawals after the vesting period concludes, include balance checks to ensure user allocations remain untouched, and emit detailed events for transparency and auditability.

Pending

#5 medium Issue
Unsecured Purchase Function
IDO.sol
L110-116
Description

The buy function contains several critical vulnerabilities undermining the IDO's security. It allows zero-amount transactions, lacks treasury address validation, disregards aggregate purchase limits, updates state after external calls (contrary to the checks-effects-interactions pattern), and assumes uniform token decimals across different tokens. These issues could lead to accounting errors, wasted gas, lost funds, or manipulation of purchase limits. To mitigate these risks, implement comprehensive validation including non-zero amount checks (require(amount > 0)), treasury address verification (require(treasury != address(0))), and cumulative purchase limit validation (require(payAmount[msg.sender] + amount <= purchaseLimit)). Additionally, follow secure coding practices by moving state updates before external calls, adding the nonReentrant modifier for reentrancy protection, storing and using actual token decimals for accurate conversions, and implementing a maximum transaction count per user to prevent gas-wasting micro-transactions. These improvements would substantially enhance the security and reliability of the IDO purchase process without compromising functionality.

low Issues | 4 findings

Pending

#1 low Issue
Missing zero or dead address check.
IDO.sol
L37-50
L86-88
Description

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

Pending

#2 low Issue
Missing parameter validation.
IDO.sol
L37-50
Description

The constructor lacks crucial parameter validation, creating significant security vulnerabilities. It fails to verify that address parameters _token, _tokenPayment, and _treasury are non-zero addresses, which could lead to permanent fund loss if mistakenly set to address(0). Time-based parameters aren't validated to ensure logical sequencing (e.g., _end > _start), potentially allowing an IDO with an invalid timeline. The TGE percentage (_tge) isn't checked to be within valid bounds (0-100%), unlike in the setVesting function. Additionally, there's no validation of relationships between vesting parameters to ensure they form a coherent vesting schedule. These missing validations should be implemented immediately to prevent configuration errors that could compromise the entire IDO process or permanently lock user funds.

Pending

#3 low Issue
Missing Time-Based Validation
IDO.sol
L73-80
Description

The function doesn't validate that _end > _start, potentially allowing an IDO with an invalid timeline where the end time precedes the start time.

Pending

#4 low Issue
Missing emit
IDO.sol
L82-84
L86-88
Description

It is recommended to emit the critical parameter changes.

informational Issues | 1 findings

Pending

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

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