Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 107 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Enter | 1497934 | 3207 days ago | IN | 1 ETH | 0.0023671 | ||||
Transfer | 1497442 | 3207 days ago | IN | 1 ETH | 0.000441 | ||||
Enter | 1461426 | 3213 days ago | IN | 1 ETH | 0.00310348 | ||||
Transfer | 1443885 | 3216 days ago | IN | 1 ETH | 0.0032266 | ||||
Transfer | 1443707 | 3216 days ago | IN | 1 ETH | 0.000441 | ||||
Transfer | 1430364 | 3218 days ago | IN | 1 ETH | 0.0031275 | ||||
Transfer | 1406589 | 3222 days ago | IN | 1 ETH | 0.00288204 | ||||
Enter | 1405938 | 3222 days ago | IN | 1 ETH | 0.00310348 | ||||
Transfer | 1399637 | 3223 days ago | IN | 1 ETH | 0.00105 | ||||
Transfer | 1399539 | 3223 days ago | IN | 1 ETH | 0.00105 | ||||
Transfer | 1399401 | 3223 days ago | IN | 1 ETH | 0.00105 | ||||
Transfer | 1399368 | 3223 days ago | IN | 1 ETH | 0.00105 | ||||
Enter | 1390461 | 3225 days ago | IN | 1 ETH | 0.00340348 | ||||
Enter | 1390386 | 3225 days ago | IN | 1 ETH | 0.00059874 | ||||
Enter | 1386081 | 3225 days ago | IN | 1 ETH | 0.00285802 | ||||
Enter | 1385061 | 3226 days ago | IN | 1 ETH | 0.0023671 | ||||
Transfer | 1384733 | 3226 days ago | IN | 1 ETH | 0.00514282 | ||||
Enter | 1384053 | 3226 days ago | IN | 1 ETH | 0.0023671 | ||||
Enter | 1383956 | 3226 days ago | IN | 1 ETH | 0.00212164 | ||||
Enter | 1383727 | 3226 days ago | IN | 1 ETH | 0.0023671 | ||||
Enter | 1383169 | 3226 days ago | IN | 1 ETH | 0.00059874 | ||||
Enter | 1382678 | 3226 days ago | IN | 1 ETH | 0.00315802 | ||||
Enter | 1382377 | 3226 days ago | IN | 1 ETH | 0.00261256 | ||||
Enter | 1382321 | 3226 days ago | IN | 1 ETH | 0.00310348 | ||||
Enter | 1382298 | 3226 days ago | IN | 1 ETH | 0.00310348 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
1497934 | 3207 days ago | 0.5 ETH | ||||
1497934 | 3207 days ago | 0.5 ETH | ||||
1461426 | 3213 days ago | 0.0625 ETH | ||||
1461426 | 3213 days ago | 0.0625 ETH | ||||
1461426 | 3213 days ago | 0.125 ETH | ||||
1461426 | 3213 days ago | 0.25 ETH | ||||
1461426 | 3213 days ago | 0.5 ETH | ||||
1443885 | 3216 days ago | 0.0625 ETH | ||||
1443885 | 3216 days ago | 0.0625 ETH | ||||
1443885 | 3216 days ago | 0.125 ETH | ||||
1443885 | 3216 days ago | 0.25 ETH | ||||
1443885 | 3216 days ago | 0.5 ETH | ||||
1430364 | 3218 days ago | 0.125 ETH | ||||
1430364 | 3218 days ago | 0.125 ETH | ||||
1430364 | 3218 days ago | 0.25 ETH | ||||
1430364 | 3218 days ago | 0.5 ETH | ||||
1406589 | 3222 days ago | 0.25 ETH | ||||
1406589 | 3222 days ago | 0.25 ETH | ||||
1406589 | 3222 days ago | 0.5 ETH | ||||
1405938 | 3222 days ago | 0.0625 ETH | ||||
1405938 | 3222 days ago | 0.0625 ETH | ||||
1405938 | 3222 days ago | 0.125 ETH | ||||
1405938 | 3222 days ago | 0.25 ETH | ||||
1405938 | 3222 days ago | 0.5 ETH | ||||
1390461 | 3225 days ago | 0.0625 ETH |
Loading...
Loading
Contract Name:
Etheramid
Compiler Version
v0.3.1-2016-04-12-3ad5e82
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2016-04-18 */ contract Etheramid { struct Participant { address inviter; address itself; uint totalPayout; } mapping (address => Participant) Tree; mapping (uint => address) Index; uint Count = 0; address top; uint constant contribution = 1 ether; function Etheramid() { addParticipant(msg.sender,msg.sender); top = msg.sender; } function() { uint rand = uint(msg.sender) % Count; enter(Index[rand]); } function getParticipantById (uint id) constant public returns ( address inviter, address itself, uint totalPayout ){ if (id >= Count) return; address ida = Index[id]; inviter = Tree[ida].inviter; itself = Tree[ida].itself; totalPayout = Tree[ida].totalPayout; } function getParticipantByAddress (address adr) constant public returns ( address inviter, address itself, uint totalPayout ){ if (Tree[adr].itself == 0x0) return; inviter = Tree[adr].inviter; itself = Tree[adr].itself; totalPayout = Tree[adr].totalPayout; } function addParticipant(address itself, address inviter) private{ Index[Count] = itself; Tree[itself] = Participant( {itself: itself, inviter: inviter, totalPayout: 0}); Count +=1; } function getParticipantCount () public constant returns ( uint count ){ count = Count; } function enter(address inviter) public { uint amount = msg.value; if ((amount < contribution) || (Tree[msg.sender].inviter != 0x0) || (Tree[inviter].inviter == 0x0)) { msg.sender.send(msg.value); return; } addParticipant(msg.sender, inviter); address next = inviter; uint rest = amount; uint level = 1; while ( (next != top) && (level < 7) ){ uint toSend = rest/2; next.send(toSend); Tree[next].totalPayout += toSend; rest -= toSend; next = Tree[next].inviter; level++; } next.send(rest); Tree[next].totalPayout += rest; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"id","type":"uint256"}],"name":"getParticipantById","outputs":[{"name":"inviter","type":"address"},{"name":"itself","type":"address"},{"name":"totalPayout","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"getParticipantCount","outputs":[{"name":"count","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"inviter","type":"address"}],"name":"enter","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"adr","type":"address"}],"name":"getParticipantByAddress","outputs":[{"name":"inviter","type":"address"},{"name":"itself","type":"address"},{"name":"totalPayout","type":"uint256"}],"type":"function"},{"inputs":[],"type":"constructor"}]
Contract Creation Code
600060028181557fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49805433600160a060020a0319918216811790925560c060409081526060839052608083905260a0859052600160a060020a0383168552602085905284208054821683178155600181810180548416851790559084018590558354019092556003805490921617905561036e90819061009e90396000f3606060405236156100405760e060020a600035046353850db38114610070578063ad60572914610091578063d014c01f146100a6578063e837ab5914610130575b610166600254600160a060020a0333811691909106600081815260016020526040902054909161016891166100ad565b61016b600435600060006000600060026000505485101515610195576101d5565b60025460408051918252519081900360200190f35b6101666004355b346000808080670de0b6b3a76400008510806100e05750600160a060020a03338116825260208290526040822054168114155b806101055750600160a060020a03868116600090815260208190526040812054909116145b1561025457604051600160a060020a03331690600090349082818181858883f193505050505061024c565b61016b600435600160a060020a03818116600090815260208190526040812060010154909182918291168114156101dd57610211565b005b50565b60408051600160a060020a0394851681529290931660208301528183015290519081900360600190f35b505050600082815260016020818152604080842054600160a060020a03908116808652928590529320805492810154600291909101549284169450909216915b509193909250565b505050600160a060020a03818116600090815260208190526040902080546001820154600292909201549083169291909116905b9193909250565b604051600160a060020a03851690600090859082818181858883f15050509081526020819052604090206002018054840190555b505050505050565b6102e83387600280546000908152600160208181526040808420805473ffffffffffffffffffffffffffffffffffffffff1990811689179091558151606081018352878152808401898152818401878152600160a060020a038b1688529487905292909520805495519582169590951785558484018054925192909116919091179055519183019190915581540190555050565b859350849250600191505b600354600160a060020a03908116908516148015906103125750600782105b1561021857506040516002830490600160a060020a03851690600090839082818181858883f15050509081526020819052604090206002810180548301905554600160a060020a031693509182900391600191909101906102f356
Deployed Bytecode
0x606060405236156100405760e060020a600035046353850db38114610070578063ad60572914610091578063d014c01f146100a6578063e837ab5914610130575b610166600254600160a060020a0333811691909106600081815260016020526040902054909161016891166100ad565b61016b600435600060006000600060026000505485101515610195576101d5565b60025460408051918252519081900360200190f35b6101666004355b346000808080670de0b6b3a76400008510806100e05750600160a060020a03338116825260208290526040822054168114155b806101055750600160a060020a03868116600090815260208190526040812054909116145b1561025457604051600160a060020a03331690600090349082818181858883f193505050505061024c565b61016b600435600160a060020a03818116600090815260208190526040812060010154909182918291168114156101dd57610211565b005b50565b60408051600160a060020a0394851681529290931660208301528183015290519081900360600190f35b505050600082815260016020818152604080842054600160a060020a03908116808652928590529320805492810154600291909101549284169450909216915b509193909250565b505050600160a060020a03818116600090815260208190526040902080546001820154600292909201549083169291909116905b9193909250565b604051600160a060020a03851690600090859082818181858883f15050509081526020819052604090206002018054840190555b505050505050565b6102e83387600280546000908152600160208181526040808420805473ffffffffffffffffffffffffffffffffffffffff1990811689179091558151606081018352878152808401898152818401878152600160a060020a038b1688529487905292909520805495519582169590951785558484018054925192909116919091179055519183019190915581540190555050565b859350849250600191505b600354600160a060020a03908116908516148015906103125750600782105b1561021857506040516002830490600160a060020a03851690600090839082818181858883f15050509081526020819052604090206002810180548301905554600160a060020a031693509182900391600191909101906102f356
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.