Ai Earn audit reports

BNB Chainaiearn.org

Ai Earn has 1 public audit report from CertiK; dated 3 Apr 2023; no critical findings reported. It also holds 1 deployed contract on 1 chain.

Critical findings
No open critical findings
In 1 report.
Open the latest report
Your label, live
Get the label for your site

Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.

Audits1

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
AI EarnSecurity firm: CertiKDate: Scope: 1 address on BNB ChainNone openFindings: 7 low
7 open
skynet.certik.com ↗

Open findings across every firm7

Statuses are the security firms’ own

7 findings are still open or acknowledged in the firms’ reports: 7 low (all open).

Low
7
  • Low Open

    Approval Race Condition

    AI Earn · CertiK · 3 Apr 2023 · Report ↗

  • Low Open

    Function Should Be Declared External

    AI Earn · CertiK · 3 Apr 2023 · Report ↗

  • Low Open

    Function state mutability can be restricted to `v

    AI Earn · CertiK · 3 Apr 2023 · Report ↗

  • Low Open

    Missing Zero Address Validation

    AI Earn · CertiK · 3 Apr 2023 · Report ↗

  • Low Open

    State Variable Should Be Declared Constant

    AI Earn · CertiK · 3 Apr 2023 · Report ↗

  • Low Open

    Unlocked Compiler Version

    AI Earn · CertiK · 3 Apr 2023 · Report ↗

  • Low Open

    User-Defined Getters

    AI Earn · CertiK · 3 Apr 2023 · Report ↗

Findings7

Statuses are the security firm’s own, from each report.

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium000
Low700
LowApproval Race ConditionAI Earn · CertiK · 3 Apr 2023Open

The `approve` function will suffer race conditions whereby an adjustment of an existing approval. It can be exploited to utilize the full amount of the previously set approval, as well as the newly set approval by monitoring the transaction mempool. Exploit scenario: 1. Alice calls `approve(Bob, 100)` to allow Bob to spend 100 tokens. 2. Alice changes her mind and calls `approve(Bob, 50)`. 3. Bob observes the second `approve(Bob, 50)` function call and calls `transferFrom(Alice, Bob, 100)` before the second `approve(Bob, 50)` call. 4. The above scenario can be achieved by front-running. In this case, Bob can transfer another 50 tokens from Alice and in total, he transferred 150 tokens from Alice.

Open the report
LowFunction Should Be Declared ExternalAI Earn · CertiK · 3 Apr 2023Open

The functions which are never called internally within the contract should have external visibility for gas optimization. ```solidity=22 function transfer(address to, uint256 value) public returns (bool) { ``` --- ```solidity=30 function transferFrom(address from, address to, uint value) public returns(bool) { ``` --- ```solidity=39 function approve(address spender, uint256 value) public returns (bool) { ```

Open the report
LowFunction state mutability can be restricted to `vAI Earn · CertiK · 3 Apr 2023Open

The function `balanceOf(address owner)` can be restricted to `view`, since no storage change in the function implementation.

Open the report
LowMissing Zero Address ValidationAI Earn · CertiK · 3 Apr 2023Open

The `transferFrom` function is expected to not allow transfer from address(0), and currently the validation is missing.

Open the report
LowState Variable Should Be Declared ConstantAI Earn · CertiK · 3 Apr 2023Open

State variables that never change should be declared as `constant` to save gas. ```solidity=6 uint public totalSupply = 1000000000000 * 10 ** 18; ``` - `totalSupply` should be declared `constant`. --- ```solidity=7 string public name = "A.I.Earn"; ``` - `name` should be declared `constant`. --- ```solidity=8 string public symbol = "AIE"; ``` - `symbol` should be declared `constant`. --- ```solidity=9 uint public decimals = 18; ``` - `decimals` should be declared `constant`.

Open the report
LowUnlocked Compiler VersionAI Earn · CertiK · 3 Apr 2023Open

The contracts cited have an unlocked compiler version. An unlocked compiler version in the source code of the contract permits the user to compile it at or above a particular version. This, in turn, leads to differences in the generated bytecode between compilations due to differing compiler version numbers. This can lead to ambiguity when debugging, as compiler specific bugs may occur in the codebase that would be hard to identify over a span of multiple compiler versions rather than a specific one.

Open the report
LowUser-Defined GettersAI Earn · CertiK · 3 Apr 2023Open

The linked functions are equivalent to the compiler-generated getter functions for the respective variables.

Open the report

Contracts1

AddressChainSource code
0x1e30bbee322b3b11c60cb434a47f1605c2a99483Chain: BNB ChainSource code: Verified source

Ai Earn: questions

Is Ai Earn audited?

Trustblock holds 1 public audit report for Ai Earn, dated 3 Apr 2023. The latest is by CertiK (“AI Earn”).

Who audited Ai Earn?

CertiK wrote the report Trustblock holds for Ai Earn.

Are there open findings in Ai Earn’s audits?

7 findings are still open or acknowledged in the firms’ reports: 7 low (all open). No critical finding is reported. Statuses are the security firms’ own.

Show this on your site

Is this your project? Show this record on your own website. The label states what the record holds, links to this page and updates by itself. It is free and needs no sign-in.

Content

Facts

Automatic: the three strongest facts of this project’s own record (its last audit and two more), highlighted. They update with the record. Picking a fact turns Automatic off.

Fixed as
Language

Style

Layout
Theme
Accent
Corners

Format

Size
Date
Embed as
HTML
<head>
<script src="https://widget.trustblock.run/project-widget.min.js" defer></script>
</head>
<body>
<div
data-tb-project-widget
data-tb-project-slug="ai-earn"
></div>
</body>

Paste the code where the label should appear. It uses no API credit and updates by itself.

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us