Member-added pyramid/chain list with equal-share claim distribution.
Key Facts
Description
Member-added pyramid/chain list with equal-share claim distribution. Functions include Pyramid(), add(address), claim(), people(uint). Verified with soljson-v0.1.1+commit.6ff4cd6 and optimizer ON.
Source Verified
Backfilled from awesome-ethereum-proofs PR #39.
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 and exact bytecode matching.
View Verification ProofShow source code (Solidity)
contract Pyramid {
mapping(address => bool) joined;
address[] public people;
function Pyramid() {
joined[msg.sender] = true;
people.length = 1;
people[0] = msg.sender;
}
function add(address account) {
if (!joined[msg.sender] || joined[account]) return;
joined[account] = true;
uint l = people.length;
people.length = l + 1;
people[l] = account;
}
function claim() {
uint256 share = this.balance / people.length;
for (uint i = 0; i < people.length; i++) {
people[i].send(share);
}
}
}External Links
Related contracts
Greeter
Same deployerA Frontier-era Greeter contract with the message: 'Hello World!'
0x113158...72fa8aAugust 8, 2015CoinFlipper
Same deployerTimestamp-parity coinflip with balance guard and donate().
0xb87824...8642adAugust 8, 2015CoinFlip
Same deployerTimestamp-parity coinflip; payout is `2 * msg.value` via `send`.
0x0013e7...1c2989August 8, 2015Multiply7
Same deployerThe Multiply7 tutorial contract — one of the first Solidity examples ever deployed to mainnet.
0xfcb20a...b96d3fAugust 10, 2015