CoterieCapitalClub

Smart Contract Audit Report

Audit Summary

CoterieCapitalClub Audit Report CoterieCapitalClub is building a new token purchasing platform.

For this audit, we reviewed project team's Club contract at 0x7546923ddb50b284c09a936e0f8ecd36c52bf4d2 on the Ethereum Mainnet.

Audit Findings

Please ensure trust in the team prior to investing as they have notable control in the ecosystem.
Date: March 7th, 2022.

Finding #1 - Club - Informational

Description: The lockedvariable is never used within the contract.
Recommendation: The locked variable can be removed for a small amount of gas savings on deployment.

Finding #2 - Club - Informational

Description: The addMember()function is declared public, but is never called internally.
Recommendation: We recommend declaring the function external for additional gas savings on each call.

Contract Overview

  • The Club contract is used to facilitate sales for various tokens designated by the team.
  • Each tokens' funding period has a start date, end date, mint price, URI value, maximum wallet amount, and maximum total supply.
  • During the token's funding period, users can purchase tokens for the set minting price until the maximum wallet amount, maximum total token supply, or maximum member amount is reached; each time a new user purchases a token they are added as a member.
  • If a users' member status is revoked, they are refunded their ETH for all of their purchased tokens, and their token balance is cleared.
  • When the safe address withdraws ETH from the contract, there is a Coterie and Referral fee sent to the Coterie and Referral addresses. The Referral fee is funded by deducting 10% of the Coterie fee. The Coterie fee is dependent on the contract's ETH balance. The fee rates for varying ETH balances are as follows:
    • 5.00% fee for balance below 50 ETH.
    • 4.25% fee for balance between 50 and 84 ETH.
    • 3.85% fee for balance between 85 and 99 ETH.
    • 3.25% fee for balance between 100 and 249 ETH.
    • 2.50% fee for balance between 250 and 499 ETH.
    • 2.00% fee for balance above 500 ETH.
  • The Coterie address can set a new Coterie address at any time.
  • The safe address can add addresses as members at any time as long as the maximum member limit has not been reached.
  • The safe address can revoke any users' member status at any time.
  • The safe address can withdraw ETH from the contract at any time.
  • The safe address can change the maximum members limit at any time.
  • The safe address can change all tokens' IPFS URL value at any time.
  • The safe address can update any tokens' maximum funding supply amount to any value at any time.
  • The safe address can create a new funding period for any token at any time.
  • The safe address can update all funding period properties to any value for any token at any time.
  • The contract complies with the ERC-1155 Multi-token standard.
  • As the contract is implemented using Solidity v0.8.x, it is safe from any possible overflow/underflow attacks.

Audit Results

Vulnerability CategoryNotesResult
Arbitrary Jump/Storage WriteN/APASS
Centralization of Control
  • The safe address can revoke a members membership at any time.
  • The safe address cannot be renounced or changed.
  • The safe address can set the refund amount to users to any amount at any time.
WARNING
Compiler IssuesN/APASS
Delegate Call to Untrusted ContractN/APASS
Dependence on Predictable VariablesN/APASS
Ether/Token TheftN/APASS
Flash LoansN/APASS
Front RunningN/APASS
Improper EventsN/APASS
Improper Authorization SchemeN/APASS
Integer Over/UnderflowN/APASS
Logical IssuesN/APASS
Oracle IssuesN/APASS
Outdated Compiler VersionN/APASS
Race ConditionsN/APASS
ReentrancyN/APASS
Signature IssuesN/APASS
Unbounded LoopsN/APASS
Unused CodeN/APASS
Overall Contract Safety PASS

Inheritance Chart

Smart Contract Audit - Inheritance

Function Graph

Smart Contract Audit - Graph

Functions Overview


 ($) = payable function
 # = non-constant function
 
 Int = Internal
 Ext = External
 Pub = Public

 +  ERC1155 
    - [Pub] uri
    - [Pub] setApprovalForAll #
    - [Pub] safeTransferFrom #
    - [Pub] safeBatchTransferFrom #
    - [Pub] balanceOfBatch
    - [Pub] supportsInterface
    - [Int] _mint #
    - [Int] _batchMint #
    - [Int] _batchBurn #
    - [Int] _burn #

 + [Int] ERC1155TokenReceiver 
    - [Ext] onERC1155Received #
    - [Ext] onERC1155BatchReceived #

 + [Lib] SafeMath 
    - [Int] tryAdd
    - [Int] trySub
    - [Int] tryMul
    - [Int] tryDiv
    - [Int] tryMod
    - [Int] add
    - [Int] sub
    - [Int] mul
    - [Int] div
    - [Int] mod
    - [Int] sub
    - [Int] div
    - [Int] mod

 + [Lib] Counters 
    - [Int] current
    - [Int] increment #
    - [Int] decrement #
    - [Int] reset #

 +  Club (ERC1155)
    - [Int] _kick #
    - [Int] _getTokenValues
    - [Int] _addMember #
    - [Ext] setCoterieAddress #
       - modifiers: onlyCoterie
    - [Ext] init #
       - modifiers: inMemberLimits
    - [Ext] createFundingRound #
       - modifiers: onlySafe,onTime
    - [Ext] editFundingRound #
       - modifiers: onlySafe,onTime
    - [Ext] editTokenMintMaximum #
       - modifiers: onlySafe
    - [Ext] editTokenMaxAmount #
       - modifiers: onlySafe
    - [Ext] editTokenIPFS #
       - modifiers: onlySafe
    - [Ext] editMaximumMembers #
       - modifiers: onlySafe,inMemberLimits
    - [Ext] mint ($)
    - [Ext] withdraw #
       - modifiers: onlySafe
    - [Ext] kick ($)
       - modifiers: onlySafe
    - [Ext] kickMultiple ($)
       - modifiers: onlySafe
    - [Pub] addMember #
       - modifiers: onlySafe
    - [Ext] addMembers #
       - modifiers: onlySafe
    - [Pub] uri

About SourceHat

SourceHat has quickly grown to have one of the most experienced and well-equipped smart contract auditing teams in the industry. Our team has conducted 1800+ solidity smart contract audits covering all major project types and protocols, securing a total of over $50 billion U.S. dollars in on-chain value!
Our firm is well-reputed in the community and is trusted as a top smart contract auditing company for the review of solidity code, no matter how complex. Our team of experienced solidity smart contract auditors performs audits for tokens, NFTs, crowdsales, marketplaces, gambling games, financial protocols, and more!

Contact us today to get a free quote for a smart contract audit of your project!

What is a SourceHat Audit?

Typically, a smart contract audit is a comprehensive review process designed to discover logical errors, security vulnerabilities, and optimization opportunities within code. A SourceHat Audit takes this a step further by verifying economic logic to ensure the stability of smart contracts and highlighting privileged functionality to create a report that is easy to understand for developers and community members alike.

How Do I Interpret the Findings?

Each of our Findings will be labeled with a Severity level. We always recommend the team resolve High, Medium, and Low severity findings prior to deploying the code to the mainnet. Here is a breakdown on what each Severity level means for the project:

  • High severity indicates that the issue puts a large number of users' funds at risk and has a high probability of exploitation, or the smart contract contains serious logical issues which can prevent the code from operating as intended.
  • Medium severity issues are those which place at least some users' funds at risk and has a medium to high probability of exploitation.
  • Low severity issues have a relatively minor risk association; these issues have a low probability of occurring or may have a minimal impact.
  • Informational issues pose no immediate risk, but inform the project team of opportunities for gas optimizations and following smart contract security best practices.