UnityMeta Token Audit

CertiK1 address on BNB Chain

CertiK reviewed UnityMeta.finance (UnityMeta Token Audit) on 28 Feb 2023: 15 findings, 0 critical; 1 marked fixed, 14 open.

No open critical findings
Open the reportOpen UnityMeta.finance’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings15

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

SeverityOpenAcknowledgedFixed
Critical000
High101
Medium000
Low1300
HighInitial Token DistributionOpen

Tokens are sent to owner when deploying the contract. This could be a centralization risk as the owner can distribute tokens without obtaining the consensus of the community.

Low`_maxBurning` limit could be surpassedOpen

The `_transfer` function checks if the `_maxBurning` limit is reached before burning tokens. However, the tokens that will be burned in this transaction are not taken into account in the calculation. ```solidity if( _totalBurning < _maxBurning) { uint256 tokensToBurn = _burnToken(amount); _totalBurning = _totalBurning.add(tokensToBurn); ``` The correct code should be: ```solidity uint256 tokensToBurn = _burnToken(amount); if ((_totalBurning + tokensToBurn) <= _maxBurning) { _totalBurning = _totalBurning.add(tokensToBurn); ```

LowConfusing Variable NameOpen

The function `_transfer()` from the contract `UnityMetaToken`, checks if the sender and recipient are allowed to transfer tokens using the variable: - `mapping(address => bool) public allowedTransfer` However, when the variable is set to true, the transactions are not allowed: ```solidity require(!allowedTransfer[sender] && !allowedTransfer[recipient], "Transfer not allowed"); ```

LowMiscalculation of Max HoldingOpen

The transaction may be charged fees, so the max holding of the receiver should be the sum of the held tokens and the amount received from the transfer. The fees should not be included in the max holding. - Max holding is checked: ```solidity=277 require(_balances[recipient] + amount <= maxWalletLimit,"Receiver are exceeding maxWalletLimit"); ``` - Receiving amount is adjusted. ```solidity=286 transferAmount = amount.sub(tokensToBurn); ``` - Balance is increased by the adjusted amount. ```solidity=288 _balances[recipient] = _balances[recipient].add(transferAmount); ```

LowPull-Over-Push Pattern In `transferOwnership()` FOpen

The change of `_owner` by function `transferOwnership()` overrides the previously set `_owner` with the new one without guaranteeing the new `_owner` is able to actuate transactions on-chain.

LowState Variable Should Be Declared ConstantOpen

State variables that never change should be declared as `constant` to save gas. ```solidity=131 uint256 public basePercent = 1; ``` - `basePercent` should be declared `constant`.

LowToo Many DigitsOpen

Literals with many digits are difficult to read and review.

LowUnchecked ERC-20 `transfer()`/`transferFrom()` CaOpen

The return value of the transfer()/transferFrom() call is not checked. ```solidity=324 IBEP20(_tokenAddr).transfer(_to, _amount); ```

LowUnlocked Compiler VersionOpen

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.

LowUnnecessary Use of SafeMathOpen

The `SafeMath` library is used unnecessarily. With Solidity compiler versions 0.8.0 or newer, arithmetic operations will automatically revert in case of integer overflow or underflow. ```solidity=36 library SafeMath { ``` - An implementation of `SafeMath` library is found. --- ```solidity=126 using SafeMath for uint256; ``` - `SafeMath` library is used for `uint256` type in `UnityMetaToken` contract. ```solidity=235 uint256 burnAmount = amount.mul(basePercent).div(1000); ``` - `SafeMath.mul` is called in `_burnToken` function of `UnityMetaToken` contract. *Note: Only a sample of 2 `SafeMath` library usage in this contract (out of 14) are shown above.*

Show 4 more
LowUnused Function `_burnFrom`Open

The internal facing function `_burnFrom` is designed to burn a certain amount of tokens from an account. However, it is not used within the contract. If the function is not intended to be used anywhere, it can be safely omitted.

LowUsage of `transfer`/`send` for sending EtherOpen

It is not recommended to use Solidity's `transfer()` and `send()` functions for transferring Ether, since some contracts may not be able to receive the funds. Those functions forward only a fixed amount of gas (2300 specifically) and the receiving contracts may run out of gas before finishing the transfer. Also, EVM instructions' gas costs may increase in the future. Thus, some contracts that can receive now may stop working in the future due to the gas limitation. ```solidity=316 payable(msg.sender).transfer(weiAmount); ``` - `UnityMetaToken.rescueBNB` uses `transfer()`.

LowUser-Defined GettersOpen

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

LowVariables That Could Be Declared as ImmutableOpen

The linked 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. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.

Contracts in scope1

AddressChainSource code
0xca861e289f04cb9c67fd6b87ca7eafa59192f164Chain: BNB ChainSource code: Verified source

Part of UnityMeta.finance’s security record

UnityMeta.finance
Audits1 audit by 1 firmLast audit Feb 2023, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open UnityMeta.finance’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