Enhanced Society Differential Analysis

Enhanced Society

26 May 2018


iosiro was commissioned by Enhanced Society to analyse a pull request to identify potential functional and security flaws introduced into the codebase. The analysis was conducted between 24 May 2018 and 25 May 2018.


The pull request was performed on a fork of the popular TokenMarket ICO Smart Contract Package. The codebase provides a boilerplate of smart contracts for projects wanting to launch an ICO.


The scope of the analysis was limited to changes made in PR #1. The specific commits are listed below.

Note: Only the code changes made by Enhanced Society detailed in the links provided above were analysed. The rest of the forked codebase was not assessed.


A comprehensive list of changes to the smart contracts in scope is given below.

  • Changed the crowdsale fallback function to call investInternal(...) in Crowdsale.sol rather than throwing. This allows participants to send ether directly to the contract and receive tokens, instead of having to call the invest(...) function to purchase tokens.
  • Added functionality that required msg.sender and the token receiver address to be added to a whitelist before being able to contribute to the ICO. Only the crowdsale contract owner could call the whitelist functions.


No functional or security flaws were identified during the analysis.

Interested in getting your smart contracts audited? Request a Quote

This is a limited report on our findings based on our analysis, in accordance with good industry practice as at the date of this report, in relation to: (i) cybersecurity vulnerabilities and issues in the smart contract source code analysed, the details of which are set out in this report, (Source Code); and (ii) the Source Code compiling, deploying and performing the intended functions. In order to get a full view of our findings and the scope of our analysis, it is crucial for you to read the full report. While we have done our best in conducting our analysis and producing this report, it is important to note that you should not rely on this report and cannot claim against us on the basis of what it says or doesn’t say, or how we produced it, and it is important for you to conduct your own independent investigations before making any decisions. We go into more detail on this in the below disclaimer below – please make sure to read it in full.

DISCLAIMER: By reading this report or any part of it, you agree to the terms of this disclaimer. If you do not agree to the terms, then please immediately cease reading this report, and delete and destroy any and all copies of this report downloaded and/or printed by you. This report is provided for information purposes only and on a non-reliance basis, and does not constitute investment advice. No one shall have any right to rely on the report or its contents, and Zenoic Proprietary Limited trading as “Iosiro” and its affiliates (including holding companies, shareholders, subsidiaries, employees, directors, officers and other representatives) (Iosiro) owe no duty of care towards you or any other person, nor does Iosiro make any warranty or representation to any person on the accuracy or completeness of the report. The report is provided "as is", without any conditions, warranties or other terms of any kind except as set out in this disclaimer, and Iosiro hereby excludes all representations, warranties, conditions and other terms (including, without limitation, the warranties implied by law of satisfactory quality, fitness for purpose and the use of reasonable care and skill) which, but for this clause, might have effect in relation to the report. Except and only to the extent that it is prohibited by law, Iosiro hereby excludes all liability and responsibility, and neither you nor any other person shall have any claim against Iosiro, for any amount or kind of loss or damage that may result to you or any other person (including without limitation, any direct, indirect, special, punitive, consequential or pure economic loss or damages, or any loss of income, profits, goodwill, data, contracts, use of money, or business interruption, and whether in delict, tort (including without limitation negligence), contract, breach of statutory duty, misrepresentation (whether innocent or negligent) or otherwise under any claim of any nature whatsoever in any jurisdiction) in any way arising from or connected with this report and the use, inability to use or the results of use of this report, and any reliance on this report.