CertiK reviewed Avium Origins (Avium 1 - audit addendum) on 24 Jan 2023: 15 findings, 0 critical; none marked fixed.
Report hosted on skynet.certik.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 1 | 0 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 14 | 0 | 0 |
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. 
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`.
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]); ```
There should always be events emitted in the sensitive functions that are controlled by centralization roles.
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.
The linked statements do not affect the functionality of the codebase and appear to be either leftovers from test code or older functionality.
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`.
```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.
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.
```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.
`MintNotStarted` is declared but never used: ```solidity=33 error MintNotStarted(); ```
`PriceChanged` is declared in `Origins` but never emitted: ```solidity=97 event PriceChanged(uint256 mintState, uint256 price); ```
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; ```
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()`.
Different magic numbers are used as-is in code.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (2)
1,045 projects reviewed · 1,376 reports · latest May 2025
See CertiK’s auditsSomething 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