Donut Swap Info

donutswap.org

Welcome to DonutSwap, a cutting-edge AMM and Yield Farming platform, redefining DeFi. Built on Ethereum with cross-chain capabilities, DonutSwap propels your assets across blockchain borders, maximizing earning potential. With diverse liquidity pools and advanced yield farming, our platform is a potent blend of security, flexibility, and profit. Dive into the future of decentralized finance with us, taste the sweet success of financial freedom, and unlock a new era of prosperity. The sweet side of DeFi starts here.

Overall Score
81.70
Poor Excellent
Donut Swap Logo

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.

TrustNet DataPulse

Smart Contract Audit

Static Analysis Dynamic Analysis Symbolic Execution SWC Check Manual Review
Contract address
0xfF68...2744
Network
BNB Smart Chain - Mainnet
License N/A
Compiler N/A
Type N/A
Language Solidity
Onboard date 2023/08/18
Revision date In progress

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 burn function within the contract.

Ownership is not renounced

Contract can be manipulated by owner functions.

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 owner can claim the stuck tokens.
  • The owner can whitelist addresses from fees.
  • The owner can update the buy and sell fees of not more than 10%.
  • The owner can set the wallet-to-wallet transfer fees to not more than 10%.
  • The owner can change the marketing wallet address.
  • The owner can enable trading only once.
  • The owner can enable/disable swapping.
  • The owner can set the minimum swap amount of not less than 0.0001% of the total supply.
  • The contract balance will be sent to the marketing wallet address(0xc209CCADBacA5A67B4f60C2832Ba19C37Dd63c2d) automatically after the swapping is completed.

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

low Issues | 1 findings

Pending

#1 low Issue
Unchecked tokens transfer (unchecked-transfer)
DONUT.sol
L650-659
Description

Use `SafeERC20`, or ensure that the transfer/transferFrom return value is checked.

optimization Issues | 1 findings

Pending

#1 optimization Issue
Public function that could be declared external (external-function)
DONUT.sol
L387-390
L392-396
L414-416
L418-420
L434-437
L439-441
L443-446
L448-464
L466-469
L471-479
L668-670
Description

Use the `external` attribute for functions never called from the contract.

informational Issues | 1 findings

Pending

#1 informational Issue
Functions that are not used (dead-code)
DONUT.sol
L341-353
L254-256
L258-264
L266-272
L274-283
L298-300
L302-309
L285-287
L289-296
L243-245
L329-339
L311-327
L361-364
L515-530
Description

Remove unused functions.