Overview
Crypto Collective is an online community located primarily on Discord where its members connect & discuss topics relating to cryptocurrency and NFTs. The general community is free to access on Discord and two additional tiers are available to unlock for members who hold one of Crypto Collective’s NFTs.
The two NFTs available upon launch (“Inner Circle” NFT and “The Collective” NFT) are minted or acquired through an ERC-1155 smart contract. The current intended maximum supply is 150 for the Inner Circle NFT and 1500 for The Collective NFT.
The initial minting process for the two NFTs is a transition from Solana to Ethereum for current holders of a previously used Solana-based NFT and will be a fully whitelisted free mint (not including gas) on the new Ethereum ERC-1155 contract. Future mints are expected to open for a set price until the intended maximum supply is reached for both NFTs.
The main token features are to provide heightened access to the Crypto Collective Discord server for token holders by the means of additional roles granted through a Discord verification bot.
Task
Blaize’s task was to find and describe security issues in the smart contracts of the platform.
We needed to check the Crypto Collective NFT smart contracts with the following parameters:
- Whether the contract is secure;
- Whether the contract corresponds to the documentation;
- Whether the contract meets best practices in efficient use of gas, code readability.
So contracts were checked against the following set of commonly known and more specific vulnerabilities during the Crypto Collective code audit:
- Unsafe type inference;
- Timestamp Dependence;
- Reentrancy;
- Implicit visibility level;
- Gas Limit and Loops;
- Transaction-Ordering Dependence;
- Unchecked external call;
- Unchecked math;
- DoS with Block Gas Limit;
- DoS with (unexpected) Throw;
- Byte array vulnerabilities;
- Malicious libraries;
- Style guide violation;
- ERC20 API violation;
- Uninitialized state/storage/
- local variables;
- Compile version not fixed.
In addition, Crypto Collective NFT smart contracts were checked against less common vulnerabilities from the internal Blaize.Security knowledge base.