LOCUS CHAIN audit reports

LOCUS CHAIN has 1 public audit report from CertiK; dated 1 Dec 2022; no critical findings reported. It also holds 1 deployed contract on 1 chain.

Critical and high findings
No open critical findings; 1 high acknowledged in the firms’ reports
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
Locus Chain - AuditSecurity firm: CertiKDate: Scope: 1 address on EthereumNone openFindings: 1 high · 13 low
1 acknowledged · 13 open
skynet.certik.com ↗

Findings14

14 findings in 1 report: 1 acknowledged (the team chose not to change the code), 13 open.

SeverityOpenAcknowledged
Critical00
High01
Medium00
Low130

Not fixed (14)

HighAcknowledgedInitial Token DistributionLocus Chain - Audit · CertiK · 1 Dec 2022

All `LOCUS` tokens are sent to the contract deployer when deploying the contract. This is a potential centralization risk as the deployer can distribute `LOCUS` tokens without the consensus of the community.

Report ↗
LowOpen`Approval` Event is not EmittedLocus Chain - Audit · CertiK · 1 Dec 2022

The function `transferFrom` deviate from the `ERC20` standard and does not emit `Approval` event for the changed allowance.

Report ↗
LowOpenDeclaration Naming ConventionLocus Chain - Audit · CertiK · 1 Dec 2022

Two declarations do not conform to the [Solidity style guide](https://solidity.readthedocs.io/en/v0.7.3/style-guide.html#naming-conventions) with regards to its naming convention. Particularly: - `camelCase`: Should be applied to function names, argument names, local and state variable names, modifiers - `UPPER_CASE`: Should be applied to `constant` variables - `CapWords`: Should be applied to contract names, struct names, event names and enums

Report ↗
LowOpenFunction Should Be Declared ExternalLocus Chain - Audit · CertiK · 1 Dec 2022

The functions which are never called internally within the contract should have external visibility for gas optimization.

Report ↗
LowOpenImplicit Return ValueLocus Chain - Audit · CertiK · 1 Dec 2022

```solidity=67 function approveAndCall(address _spender, uint _value, bytes _extraData) public returns(bool) { ``` - The function `approveAndCall` implicitly returns a default value.

Report ↗
LowOpenMissing Emit EventsLocus Chain - Audit · CertiK · 1 Dec 2022

Functions that update state variables should emit relevant events as notifications.

Report ↗
LowOpenMissing Error MessagesLocus Chain - Audit · CertiK · 1 Dec 2022

The **require** statement can be used to check for conditions and throw an exception if the condition is not met. It is better to provide a string message containing details about the error that will be passed back to the caller.

Report ↗
LowOpenMissing Zero Address ValidationLocus Chain - Audit · CertiK · 1 Dec 2022

The cited address input is missing a check that it is not `address(0)`.

Report ↗
LowOpenPotential Risk On `approve()`/`transferFrom()` MeLocus Chain - Audit · CertiK · 1 Dec 2022

Current Locus implementation is vulnerable to [a known ERC20 race condition issue](https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729), which could lead to token theft. When a user calls `approve()` for a second time on a spender that has already been allowed, the spender could call `transferFrom()` to transfer the previous value and still receive the authorization to transfer the new value. 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.

Report ↗
LowOpenRedundant `if` StatementLocus Chain - Audit · CertiK · 1 Dec 2022

The highlighted `if` statement will always equal `true` because the `approve()` function either reverts or returns true.

Report ↗
Show all 14
LowOpenToo Many DigitsLocus Chain - Audit · CertiK · 1 Dec 2022

Literals with many digits are difficult to read and review. ```solidity=15 uint internal constant initialSupply = 7000000000 * (10 ** uint(decimals)); ```

Report ↗
LowOpenUnlocked and Outdated Compiler VersionLocus Chain - Audit · CertiK · 1 Dec 2022

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. Furthermore, the versions of Solidity allowed by the pragma statement are not recommended as they are considered old (0.4.x).

Report ↗
LowOpenUser-Defined GettersLocus Chain - Audit · CertiK · 1 Dec 2022

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

Report ↗
LowOpenVariable Can Be Declared as ImmutableLocus Chain - Audit · CertiK · 1 Dec 2022

The variable `tokenOwner` assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation, but will remain constant throughout the lifetime of a deployed contract. An advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they are not located in storage. Please note that `immutable` state variables were introduced in later Solidity releases. Therefore, in order to make use of it, a greater version of Solidity should be used.

Report ↗

Contracts1

AddressChainSource code
0xc64500dd7b0f1794807e67802f8abbf5f8ffb054Chain: EthereumSource code: Verified source

LOCUS CHAIN: questions

Is LOCUS CHAIN audited?

Trustblock holds 1 public audit report for LOCUS CHAIN, dated 1 Dec 2022. The latest is by CertiK (“Locus Chain - Audit”).

Who audited LOCUS CHAIN?

CertiK wrote the report Trustblock holds for LOCUS CHAIN.

Are there open findings in LOCUS CHAIN’s audits?

14 findings are still open or acknowledged in the firms’ reports: 1 high, 13 low (13 open, 1 acknowledged). No critical finding is reported. Statuses are the security firms’ own.

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