DCOREUM (DCO) - Audit

CertiKFiles named in the report

CertiK reviewed DCOREUM (DCOREUM (DCO) - Audit) on 22 Feb 2023: 10 findings, 0 critical; 2 acknowledged, 8 open.

No open critical findings
Open the reportOpen DCOREUM’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings10

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

SeverityOpenAcknowledgedFixed
Critical000
High010
Medium010
Low800
LowIncorrect Implementation of `lockTheSwap` FunctioOpen

Modifier `lockTheSwap` doesn't have a `require` statement to restrict the `_transfer()` from reentrancy when `inSwapAndLiquify` variable is `true`. ```solidity=36 modifier lockTheSwap { inSwapAndLiquify = true; _; inSwapAndLiquify = false; } ```

LowInefficient Memory ParameterOpen

One or more parameters with `memory` data location are never modified in their functions and those functions are never called internally within the contract. Thus, their data location can be changed to `calldata` to avoid the gas consumption copying from calldata to memory. ```solidity=17 function bulkTransfer(address[] memory _users, uint256[] memory _value) public returns (bool success) { ``` `bulkTransfer` has memory location parameters: `_users`, `_value`.

LowMissing Input ValidationOpen

Input parameters `_users` and `_value` are not validated. They may have zero length or have different lengths from each other. Elements of `_values` may be zeros as well.

LowMissing Zero Address ValidationOpen

Addresses should be checked before assignment or external call to make sure they are not zero addresses. ```solidity=54 lpAddress = _address; ``` - `_address` is not zero-checked before being used. --- ```solidity=19 owner = newOwner; ``` - `newOwner` is not zero-checked before being used.

LowMultiple LP Addresses May Exist on ChainOpen

According to the project design, there is a `lpAddress` that uses to track the address of the LP pool and when transferring tokens to the LP pool, a "marketing fee" will be charged. However, in the current implementation, the `lpAddress` variable can only hold one LP address. Therefore, if there is a multiple LP address pool on chain, at most one LP address is able to charge for marketing fees. The concern is, when multiple lp pools exist, users may choose the pool that does not charge fees and thus may cause the project loses some fees.

LowUnlocked Compiler VersionOpen

The contract has 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 different compiler versions. This can lead to an 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.

LowUnused and Shadowing State VariableOpen

A state variable is shadowing another variable defined in a parent contract. The mapping `_balances` in `DCO.sol` shadows the mapping `_balances` in `ERC20`. ```solidity=17 mapping(address => uint256) _balances; ``` ```solidity=36 mapping(address => uint256) private _balances; ``` The mapping `_balances` in `DCO.sol` is also not used anywhere in the contract.

LowVariable Can Be Declared as ImmutableOpen

There are certain variables 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. The following variables are defined in the constructor and are never re-defined elsewhere: * `superAdminAddress` * `splitAddresses` * `marketingFee`

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (2)

  • lib/OwnableContract.sol
  • DCO_New.sol

Part of DCOREUM’s security record

DCOREUM
Audits1 audit by 1 firmLast audit Feb 2023, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open DCOREUM’s security record

Security firm

CertiK

1,044 projects reviewed · 1,375 reports · latest May 2025

See CertiK’s audits

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