AFFITRUM Info

affitrum.ai

Affitrum proposes to use AI algorithm and Web3 technologies to transform the digital advertising industry. By utilizing blockchain, smart contracts, and decentralized Ad networks. Affitrum can introduce transparency, eliminate intermediaries, enhance privacy, and ensure fair compensation for all participants. The project aims to empower advertisers, publishers, and users, creating a sustainable and efficient ecosystem.

Overall Score
80.74
Poor Excellent
AFFITRUM 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.

On-Chain Insights

Smart Contract Audit

Static Analysis Dynamic Analysis Symbolic Execution SWC Check Manual Review
Contract address
0xdd83...e4BA
Network
Arbitrum - Testnet
License N/A
Compiler N/A
Type N/A
Language Solidity
Onboard date 2023/07/13
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/Authority Privileges
  • Launch Contract
  • Withdraw tokens and ETH from the contract but not the native ones
  • Set Fee receiver addresses
  • Set liquidity treasury and distributor address
  • Include/Exclude accounts from  Fees
  • Enable/Disable auto buyback, record buy, and add liquidity
  • Add/Remove pair
  • The buy/sell fees is fixed at 9%

Note - This Audit report consists of a security analysis of the AFFITRUM Token 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 AFFITRUM team, other contracts associated with the project were not audited by our team. We recommend investors do their own research before investing. 

Moreover, The actual code of the interfaces used in the contract IJackpot, readDistributor and IAffilBonusPool were not a part of the audit scope and we cannot comment on its security. On the other hand, the distributor address can be used to lock tokens as we don't know the actual code and it can be used to return type(unit256).max

Files and details

Functions
public

/

State variables
public

/

Total lines
of code

/

Capabilities
Hover on items

/

Findings and Audit result

low Issues | 3 findings

Pending

#1 low Issue
Local variables shadowing (shadowing-local)
AFFITRUM.sol
L1785
Description

Rename the local variables that shadow another component.

Pending

#2 low Issue
Missing Events Arithmetic (events-maths)
AFFITRUM.sol
L2051-2053
Description

Emit an event for critical parameter changes.

Pending

#3 low Issue
Missing Zero Address Validation (missing-zero-check)
AFFITRUM.sol
L2025
L2027
L2028
L2041
L2046
Description

Check that the address is not zero.

optimization Issues | 2 findings

Pending

#1 optimization Issue
State variables that could be declared constant (constable-states)
AFFITRUM.sol
L1741
L1749
L1738
L1746
L1743
L1751
L1734
L1740
L1748
L1739
L1747
L1742
L1750
L1744
L1752
Description

Add the `constant` attributes to state variables that never change.

Pending

#2 optimization Issue
Public function that could be declared external (external-function)
AFFITRUM.sol
L224-226
L232-234
L1810-1812
L1814-1816
L298-302
L1818-1822
L343-347
L363-372
L1036-1038
L1044-1047
L1964-1966
L2006-2010
L2079-2082
L2084-2087
L2089-2091
L2093-2096
Description

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

informational Issues | 2 findings

Pending

#1 informational Issue
Functions that are not used (dead-code)
AFFITRUM.sol
L700-702
L729-735
L785-787
L795-802
L760-762
L770-777
L675-680
L834-844
L159-161
L447-463
L1213-1215
L1229-1231
L1377-1379
L1267-1269
L1415-1417
L1246-1248
L1394-1396
L1253-1255
L1401-1403
L1239-1241
L1387-1389
L1353-1363
L1279-1289
L1427-1437
L905-918
L929-940
L920-927
L942-956
L889-896
Description

Remove unused functions.

Pending

#2 informational Issue
Unused return values (unused-return)
AFFITRUM.sol
L1803-1808
Description

Ensure that all the return values of the function calls are used.