Ether.Camp’s Hacker Gold HKG Source Code, Concerns About The USD 50 million Cap, A Significant Bug And A New Bug Fixed Contract!

Originally posted Oct 18 2016; updated 14:05 Oct 22 2016 UTC with live contract details; updated Jan 7 2017 with significant bug; updated Jan 12 2017 with newly deployed contract with the bug fix.

This is not investment advise as to whether Hacker Gold is a good investment or not. This is just a quick look at the smart contract and the concept behind Hacker Gold.

Significant Bug!:


A code audit was just conducted on Ether.Camp’s HackerGold Smart Contracts – see EtherCamp’s Hacker Gold (HKG) public code audit.

Links:

There have been some complaints about the USD 50 million (4,000,000 ETH) cap, and investors basically get voting rights to the Hacker Gold competition, and the ethers raised go towards building the Hacker Gold virtual accelerator platform, not the startups competing on this platform:

Update Oct 20 2016 And two potential judges have declined:

To purchase Hacker Gold tokens, just send ethers to the contract address 0xb582baaf5e749d6aa98a22355a9d08b4c4d013c8, with a gas value of 100,000. The method () payable calls the method createHKG(...) that will generate the tokens for your sending address. Do it at your own risk – send a small amount first to confirm that it works as you expect. The HKG tokens are ERC: Token standard #20 compliant.


Token Price

From HackerGold sale site:
screen-shot-2016-10-23-at-01-17-03
From the live contract code:


Source Code For Replacement Contract From EtherScan.io

11 Jan 17 Updated. See link above re replacement contract. Following is the source code from the new contract address 0x14f37b574242d366558db61f3335289a5035c506.


Source Code From EtherScan.io

Contract address 0xb582baaf5e749d6aa98a22355a9d08b4c4d013c8.
Note that there is a significant bug in transferFrom(...) on line #133 below. The buggy statement balances[to] =+ value; should read balances[to] += value;.


Source Code From Repository

The source code below from github.com/ether-camp/virtual-accelerator seems to be cleaned up after the public code audit.

TokenInterface.sol

 

StandardToken.sol

Note that there is a significant bug in transferFrom(...) on line #76 below. The buggy statement balances[to] =+ value; should read balances[to] += value;.

 

HackerGold.sol

 

wallet.sol

This entry was posted in Blog and tagged , , , . Bookmark the permalink.