Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
2441061 | 2991 days ago | 0 ETH | ||||
2441032 | 2991 days ago | 0 ETH | ||||
2441022 | 2991 days ago | 0 ETH | ||||
2440451 | 2991 days ago | 0 ETH | ||||
2440209 | 2991 days ago | 0 ETH | ||||
2439705 | 2991 days ago | 0 ETH | ||||
2438936 | 2992 days ago | 0 ETH | ||||
2438517 | 2992 days ago | 0 ETH | ||||
2438507 | 2992 days ago | 0 ETH | ||||
2438491 | 2992 days ago | 0 ETH | ||||
2438482 | 2992 days ago | 0 ETH | ||||
2438476 | 2992 days ago | 0 ETH | ||||
2438473 | 2992 days ago | 0 ETH | ||||
2438465 | 2992 days ago | 0 ETH | ||||
2438459 | 2992 days ago | 0 ETH | ||||
2438438 | 2992 days ago | 0 ETH | ||||
2438433 | 2992 days ago | 0 ETH | ||||
2438418 | 2992 days ago | 0 ETH | ||||
2438411 | 2992 days ago | 0 ETH | ||||
2438383 | 2992 days ago | 0 ETH | ||||
2438359 | 2992 days ago | 0 ETH | ||||
2438338 | 2992 days ago | 0 ETH | ||||
2438332 | 2992 days ago | 0 ETH | ||||
2438321 | 2992 days ago | 0 ETH | ||||
2438287 | 2992 days ago | 0 ETH |
Loading...
Loading
Contract Name:
Kardashian
Compiler Version
v0.3.5-2016-07-01-48238c9
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2016-07-12 */ /*Double your money, low fee*/ contract Kardashian { struct Participant { address etherAddress; uint amount; } Participant[] public participants; uint public payoutIdx = 0; uint public collectedFees; uint public balance = 0; address public owner; // simple single-sig function modifier modifier onlyowner { if (msg.sender == owner) _ } // this function is executed at initialization and sets the owner of the contract function Kardashian() { owner = msg.sender; } // fallback function - simple transactions trigger this function() { enter(); } function enter() { if (msg.value < 10 finney) { msg.sender.send(msg.value); return; } uint amount; if (msg.value > 100 ether) { msg.sender.send(msg.value - 100 ether); amount = 100 ether; } else { amount = msg.value; } // add a new participant to array uint idx = participants.length; participants.length += 1; participants[idx].etherAddress = msg.sender; participants[idx].amount = amount; // collect fees and update contract balance if (idx != 0) { collectedFees += amount / 20; balance += amount - amount / 20; } else { // first participant has no one above him, // so it goes all to fees collectedFees += amount; } // while there are enough ether on the balance we can pay out to an earlier participant while (balance > participants[payoutIdx].amount / 100 * 190) { uint transactionAmount = participants[payoutIdx].amount / 100 * 190; participants[payoutIdx].etherAddress.send(transactionAmount); balance -= transactionAmount; payoutIdx += 1; } } function collectFees() onlyowner { if (collectedFees == 0) return; owner.send(collectedFees); collectedFees = 0; } function setOwner(address _owner) onlyowner { owner = _owner; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"participants","outputs":[{"name":"etherAddress","type":"address"},{"name":"amount","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"collectedFees","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"payoutIdx","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"balance","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"collectFees","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"enter","outputs":[],"type":"function"},{"inputs":[],"type":"constructor"}]
Contract Creation Code
6060604052600060016000505560006003600050555b33600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b6106df8061004f6000396000f36060604052361561008a576000357c01000000000000000000000000000000000000000000000000000000009004806313af40351461009b57806335c1d349146100b35780638da5cb5b146100fc5780639003adfe14610135578063a60f358814610158578063b69ef8a81461017b578063c87965721461019e578063e97dcb62146101ad5761008a565b6100995b6100966101bc565b5b565b005b6100b160048080359060200190919050506104ef565b005b6100c96004808035906020019091905050610575565b604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b61010960048050506105cc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61014260048050506105f2565b6040518082815260200191505060405180910390f35b61016560048050506105fb565b6040518082815260200191505060405180910390f35b6101886004805050610604565b6040518082815260200191505060405180910390f35b6101ab600480505061060d565b005b6101ba60048050506101bc565b005b600060006000662386f26fc10000341015610209573373ffffffffffffffffffffffffffffffffffffffff16600034604051809050600060405180830381858888f19350505050506104ea565b68056bc75e2d6310000034111561026b573373ffffffffffffffffffffffffffffffffffffffff16600068056bc75e2d631000003403604051809050600060405180830381858888f193505050505068056bc75e2d6310000092508250610271565b34925082505b600060005080549050915060016000600050818180549050019150818154818355818115116103035760020281600202836000526020600020918201910161030291906102b9565b808211156102fe5760006000820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160005060009055506002016102b9565b5090565b5b5050505033600060005083815481101561000257906000526020600020906002020160005b5060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff0219169083021790555082600060005083815481101561000257906000526020600020906002020160005b50600101600050819055506000821415156103bb5760148304600260008282825054019250508190555060148304830360036000828282505401925050819055506103ce565b8260026000828282505401925050819055505b5b60be60646000600050600160005054815481101561000257906000526020600020906002020160005b5060010160005054040260036000505411156104e95760be60646000600050600160005054815481101561000257906000526020600020906002020160005b5060010160005054040290506000600050600160005054815481101561000257906000526020600020906002020160005b5060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600082604051809050600060405180830381858888f1935050505050806003600082828250540392505081905550600160016000828282505401925050819055506103cf565b5b505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156105715780600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b5b50565b600060005081815481101561000257906000526020600020906002020160005b915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160005054905082565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026000505481565b60016000505481565b60036000505481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156106dc5760006002600050541415610676576106dd565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166000600260005054604051809050600060405180830381858888f193505050505060006002600050819055505b5b56
Deployed Bytecode
0x6060604052361561008a576000357c01000000000000000000000000000000000000000000000000000000009004806313af40351461009b57806335c1d349146100b35780638da5cb5b146100fc5780639003adfe14610135578063a60f358814610158578063b69ef8a81461017b578063c87965721461019e578063e97dcb62146101ad5761008a565b6100995b6100966101bc565b5b565b005b6100b160048080359060200190919050506104ef565b005b6100c96004808035906020019091905050610575565b604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b61010960048050506105cc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61014260048050506105f2565b6040518082815260200191505060405180910390f35b61016560048050506105fb565b6040518082815260200191505060405180910390f35b6101886004805050610604565b6040518082815260200191505060405180910390f35b6101ab600480505061060d565b005b6101ba60048050506101bc565b005b600060006000662386f26fc10000341015610209573373ffffffffffffffffffffffffffffffffffffffff16600034604051809050600060405180830381858888f19350505050506104ea565b68056bc75e2d6310000034111561026b573373ffffffffffffffffffffffffffffffffffffffff16600068056bc75e2d631000003403604051809050600060405180830381858888f193505050505068056bc75e2d6310000092508250610271565b34925082505b600060005080549050915060016000600050818180549050019150818154818355818115116103035760020281600202836000526020600020918201910161030291906102b9565b808211156102fe5760006000820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160005060009055506002016102b9565b5090565b5b5050505033600060005083815481101561000257906000526020600020906002020160005b5060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff0219169083021790555082600060005083815481101561000257906000526020600020906002020160005b50600101600050819055506000821415156103bb5760148304600260008282825054019250508190555060148304830360036000828282505401925050819055506103ce565b8260026000828282505401925050819055505b5b60be60646000600050600160005054815481101561000257906000526020600020906002020160005b5060010160005054040260036000505411156104e95760be60646000600050600160005054815481101561000257906000526020600020906002020160005b5060010160005054040290506000600050600160005054815481101561000257906000526020600020906002020160005b5060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600082604051809050600060405180830381858888f1935050505050806003600082828250540392505081905550600160016000828282505401925050819055506103cf565b5b505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156105715780600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b5b50565b600060005081815481101561000257906000526020600020906002020160005b915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160005054905082565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026000505481565b60016000505481565b60036000505481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156106dc5760006002600050541415610676576106dd565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166000600260005054604051809050600060405180830381858888f193505050505060006002600050819055505b5b56
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.