Avium 1 - audit addendum

CertiKFiles named in the report

CertiK reviewed Avium Origins (Avium 1 - audit addendum) on 24 Jan 2023: 15 findings, 0 critical; none marked fixed.

No open critical findings
Open the reportOpen Avium Origins’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
High100
Medium000
Low1400
HighCentralization Risks in OriginsOpen

In the contract `Origins` the role `_owner` has authority over the functions shown in the diagram below. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority and change different contract parameters, pause/unpause the contract and even withdraw all funds from it. ![](https://accelerator-tasks-prod.acc.corp.certik.com/ff1e95858ff24e01badef4949886e98f/diagrams/centralization_Origins-Origins-_owner.svg)

LowDeclaration Naming ConventionOpen

One declaration does 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 ```solidity=56 bytes32 private DOMAIN_SEPARATOR; ``` - Variable `DOMAIN_SEPARATOR` is not in `camelCase`.

LowExternal Call Inside LoopOpen

External calls are made inside a *for* loop. This might lead to a denial-of-service attack. If any of the calls fail, it will cause the entire loop to revert. ```solidity=21 erc721Contract.transferFrom(msg.sender, to[i], tokenIds[i][j]); ```

LowMissing Emit EventsOpen

There should always be events emitted in the sensitive functions that are controlled by centralization roles.

LowMissing Zero Address ValidationOpen

Addresses should be checked before assignment or external call to make sure they are not zero addresses. ```solidity=74 signer = signer_; ``` - `signer_` is not zero-checked before being used. --- ```solidity=247 to.transfer(address(this).balance); ``` - `to` is not zero-checked before being used.

LowRedundant Code ComponentsOpen

The linked statements do not affect the functionality of the codebase and appear to be either leftovers from test code or older functionality.

LowShadowing Local VariableOpen

A local variable is shadowing another component defined elsewhere. ```solidity=68 address owner, ``` - Local variable `owner` in `Origins.constructor` shadows the function `owner` in `Ownable`.

LowUninitialized Local VariableOpen

```solidity=18 for (uint256 i; i < length; ) { ``` - Local variable `i` is never initialized. --- ```solidity=20 for (uint256 j; j < tokenLength; ) { ``` - Local variable `j` is never initialized. --- ```solidity=38 for (uint256 i; i < length; ) { ``` - Local variable `i` is never initialized.

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.

LowUnsafe Integer CastOpen

```solidity=75 ogwlPrices[0] = uint128(prices_[0]); ``` - The type conversion `uint128(prices_[0])` from larger type uint256 to smaller type uint128 may truncate data. --- ```solidity=76 ogwlPrices[1] = uint128(prices_[1]); ``` - The type conversion `uint128(prices_[1])` from larger type uint256 to smaller type uint128 may truncate data. --- ```solidity=188 _setAux(msg.sender, uint64(aux + (1 << bitPos))); ``` - The type conversion `uint64(aux + (1 << bitPos))` from larger type uint256 to smaller type uint64 may truncate data.

Show 5 more
LowUnused Custom ErrorOpen

`MintNotStarted` is declared but never used: ```solidity=33 error MintNotStarted(); ```

LowUnused EventOpen

`PriceChanged` is declared in `Origins` but never emitted: ```solidity=97 event PriceChanged(uint256 mintState, uint256 price); ```

LowUnused State VariableOpen

One state variables are never used in the codebase. Variable `PUBLIC_PRICE` in `Origins` is never used in `Origins`. ```solidity=44 uint256 private constant PUBLIC_PRICE = 2; ```

LowUsage of `transfer` 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=247 to.transfer(address(this).balance); ``` - `Origins.withdraw()` uses `transfer()`.

LowUsage of Magic NumbersOpen

Different magic numbers are used as-is in code.

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)

  • contracts/MultiSend.sol
  • contracts/Origins.sol

Part of Avium Origins’s security record

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

Security firm

CertiK

1,045 projects reviewed · 1,376 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