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;
}
}External Links
Related contracts
StringVoting
Same eraA single-function voting contract where users cast votes by sending ETH with a string candidate name, from the same developer who built MovieVoting.
0x61a9c3...545606August 8, 2015MovieVoting
Same eraPay-to-vote bidding on bytes32 keys with append-only movie list.
0x58828d...88d96aAugust 8, 2015CoinEscrow
Same eraA token contract with built-in escrow functionality, combining the dapp-bin BasicCoin interface with deposit and withdrawal operations.
0x9018e2...35a683August 8, 2015CoinEscrow
Same eraA deployment of the CoinEscrow contract with identical function interface to rank 28, by a different deployer.
0xe727bb...38cfa1August 8, 2015MessagingContract
Same eraOne of the earliest messaging contracts on Ethereum, allowing users to send on-chain messages stored by content hash.
0xdc884e...45f48bAugust 8, 2015MessagingContract v2
Same eraAn upgraded on-chain messaging contract with per-address message tracking and delete functionality, from the same Frontier developer who built the simpler Messa
0x18991f...dfff72August 8, 2015