Back to Home

Investment

other
0x5fc8aefc8688...2647fafa0d83
FrontierContract #41Source Verified
Deployed August 8, 2015 (10 years ago)Block 54,180

An early Frontier investment contract where users deposit ETH and can withdraw their balance, with an investor counter.

Key Facts

Deployment Block
54,180
Deployment Date
Aug 8, 2015, 04:05 PM
Code Size
1.7 KB
Gas at Deploy
492,325
Transactions by Year
20152

Description

An investment contract deployed at block 54,180 (August 2015) on Ethereum Frontier. Users deposit ETH via the payable fallback, which credits their balanceOf mapping and increments the investor count. The withdraw_funds() function lets depositors reclaim their balance. At 1,315 bytes with only 3 functions, this is one of the simplest deposit/withdraw contracts from Ethereum's first week.

Source Verified

SolidityNear-exact bytecode match
Compiler: soljson

near_exact_match: reconstructed source with balanceOf mapping, payable fallback, and withdraw_funds. All 3 selectors confirmed via openchain.xyz (withdraw_funds, balanceOf, getNumInvestors).

Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: other

Frontier Era

The initial release of Ethereum. A bare-bones implementation for technical users.

Block span: 01,149,999
July 30, 2015March 14, 2016

Bytecode Overview

Opcodes1,733
Unique Opcodes122
Jump Instructions93
Storage Operations72

Verified Source Available

This contract has verified source code.

Show source code (Solidity)
contract Investment {
    mapping(address => uint) public balanceOf;
    uint numInvestors;

    function() {
        balanceOf[msg.sender] += msg.value;
        numInvestors++;
    }

    function withdraw_funds() {
        uint amount = balanceOf[msg.sender];
        balanceOf[msg.sender] = 0;
        msg.sender.send(amount);
    }

    function getNumInvestors() constant returns (uint) {
        return numInvestors;
    }
}

External Links