An early Frontier investment contract where users deposit ETH and can withdraw their balance, with an investor counter.
Historical Significance
One of the earliest deposit/withdrawal contracts on Ethereum mainnet, demonstrating basic financial contract patterns on Frontier.
Context
Deployed during Ethereum Frontier week 1. Simple ETH custody contracts like this were among the first financial experiments on the network.
Key Facts
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
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.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology (near-exact bytecode match).
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;
}
}