Overview
ETH Balance
2.545508375376846309 ETH
Eth Value
$8,169.05 (@ $3,209.20/ETH)Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 164 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Enter | 14459578 | 1000 days ago | IN | 0 ETH | 0.0005359 | ||||
Set Owner | 14459560 | 1000 days ago | IN | 0 ETH | 0.00077116 | ||||
Set Owner | 6521816 | 2257 days ago | IN | 0 ETH | 0.00011577 | ||||
Transfer* | 6036811 | 2338 days ago | IN | 0.000001 ETH | 0.00005788 | ||||
Enter | 5796173 | 2379 days ago | IN | 0 ETH | 0.00004484 | ||||
Enter | 5796148 | 2379 days ago | IN | 0 ETH | 0.00008652 | ||||
0xeebf9808 | 5199847 | 2482 days ago | IN | 0 ETH | 0.00011657 | ||||
0xeebf9808 | 5199818 | 2482 days ago | IN | 0 ETH | 0.000116 | ||||
Transfer | 5199786 | 2482 days ago | IN | 0.00001 ETH | 0.00011456 | ||||
Transfer | 5199771 | 2482 days ago | IN | 0.00001 ETH | 0.0000948 | ||||
Owner | 5199255 | 2482 days ago | IN | 0.00001 ETH | 0.00008748 | ||||
Owner | 5199169 | 2482 days ago | IN | 0 ETH | 0.00008748 | ||||
Set Owner | 5199124 | 2482 days ago | IN | 0 ETH | 0.00011577 | ||||
Set Owner | 4265290 | 2656 days ago | IN | 0 ETH | 0.00055569 | ||||
Enter | 4265284 | 2656 days ago | IN | 0 ETH | 0.0005381 | ||||
Enter | 1309108 | 3176 days ago | IN | 0.1 ETH | 0.00481165 | ||||
Enter | 1260751 | 3184 days ago | IN | 0.05 ETH | 0.00482935 | ||||
Transfer | 1255526 | 3185 days ago | IN | 0.025 ETH | 0.00055882 | ||||
Transfer | 1220581 | 3190 days ago | IN | 2 ETH | 0.00215596 | ||||
Transfer | 1220446 | 3190 days ago | IN | 1 ETH | 0.005 | ||||
Transfer | 1220280 | 3190 days ago | IN | 14.97 ETH | 0.005 | ||||
Transfer | 1216369 | 3191 days ago | IN | 0.05 ETH | 0.00191586 | ||||
Transfer | 1216358 | 3191 days ago | IN | 0.05 ETH | 0.00191586 | ||||
Transfer | 1216355 | 3191 days ago | IN | 0.05 ETH | 0.00191586 | ||||
Transfer | 1216349 | 3191 days ago | IN | 0.05 ETH | 0.00191586 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
6036811 | 2338 days ago | 0.000001 ETH | ||||
5199847 | 2482 days ago | 0 ETH | ||||
5199786 | 2482 days ago | 0.00001 ETH | ||||
2440139 | 2988 days ago | 0 ETH | ||||
2440089 | 2988 days ago | 0 ETH | ||||
2440045 | 2988 days ago | 0 ETH | ||||
2439949 | 2988 days ago | 0 ETH | ||||
2439085 | 2988 days ago | 0 ETH | ||||
2439031 | 2988 days ago | 0 ETH | ||||
2438711 | 2988 days ago | 0 ETH | ||||
2438517 | 2988 days ago | 0 ETH | ||||
2438507 | 2988 days ago | 0 ETH | ||||
2438491 | 2988 days ago | 0 ETH | ||||
2438482 | 2988 days ago | 0 ETH | ||||
2438476 | 2988 days ago | 0 ETH | ||||
2438473 | 2988 days ago | 0 ETH | ||||
2438465 | 2988 days ago | 0 ETH | ||||
2438459 | 2988 days ago | 0 ETH | ||||
2438438 | 2988 days ago | 0 ETH | ||||
2438435 | 2988 days ago | 0 ETH | ||||
2438433 | 2988 days ago | 0 ETH | ||||
2438418 | 2988 days ago | 0 ETH | ||||
2438411 | 2988 days ago | 0 ETH | ||||
2438368 | 2988 days ago | 0 ETH | ||||
2438359 | 2988 days ago | 0 ETH |
Loading...
Loading
Contract Name:
PiggyBank
Compiler Version
v0.2.2-2016-03-10-34d714f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2016-03-24 */ contract PiggyBank { struct InvestorArray { address etherAddress; uint amount; } InvestorArray[] public investors; uint public k = 0; uint public fees; 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 PiggyBank() { owner = msg.sender; } // fallback function - simple transactions trigger this function() { enter(); } function enter() { if (msg.value < 50 finney) { msg.sender.send(msg.value); return; } uint amount=msg.value; // add a new participant to array uint total_inv = investors.length; investors.length += 1; investors[total_inv].etherAddress = msg.sender; investors[total_inv].amount = amount; // collect fees and update contract balance fees += amount / 33; // 3% Fee balance += amount; // balance update if (fees != 0) { if(balance>fees) { owner.send(fees); balance -= fees; //balance update } } // 4% interest distributed to the investors uint transactionAmount; while (balance > investors[k].amount * 3/100 && k<total_inv) //exit condition to avoid infinite loop { if(k%25==0 && balance > investors[k].amount * 9/100) { transactionAmount = investors[k].amount * 9/100; investors[k].etherAddress.send(transactionAmount); balance -= investors[k].amount * 9/100; //balance update } else { transactionAmount = investors[k].amount *3/100; investors[k].etherAddress.send(transactionAmount); balance -= investors[k].amount *3/100; //balance update } k += 1; } //----------------end enter } function setOwner(address new_owner) onlyowner { owner = new_owner; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"new_owner","type":"address"}],"name":"setOwner","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"investors","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":"fees","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"k","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"balance","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"enter","outputs":[],"type":"function"},{"inputs":[],"type":"constructor"}]
Contract Creation Code
60606040526000600181905560035560048054600160a060020a031916331790556105168061002e6000396000f3606060405236156100615760e060020a600035046313af4035811461006c5780633feb5f2b146100a15780638da5cb5b146100f05780639af1d35a14610102578063b4f40c611461010b578063b69ef8a814610114578063e97dcb621461011d575b61015b61015d610121565b61015b600435600454600160a060020a039081163391909116141561009e5760048054600160a060020a031916821790555b50565b61015f600435600080548290811015610002575080526002026000805160206104d68339815191528101546000805160206104f68339815191529190910154600160a060020a03919091169082565b610185600454600160a060020a031681565b6101a260025481565b6101a260015481565b6101a260035481565b61015b5b60006000600066b1a2bc2ec500003410156101b457604051600160a060020a033316908290349082818181858883f150505050505b505050565b005b565b6040518083600160a060020a031681526020018281526020019250505060405180910390f35b60408051600160a060020a03929092168252519081900360200190f35b60408051918252519081900360200190f35b600080546001810180835534955090935090818480158290116102125760020281600202836000526020600020918201910161021291905b80821115610416578054600160a060020a031916815560006001919091019081556101ec565b50505050336000600050838154811015610002578180526002026000805160206104d6833981519152018054600160a060020a031916909217909155805484919084908110156100025760029081026000805160206104f6833981519152019290925581546021860401918290556003805486019055146102c95760025460035411156102c957600254600454604051600160a060020a03919091169160009182818181858883f150506003805491909103905550505b6001546000805460649290811015610002579080526002026000805160206104f68339815191520154600380549102919091049011801561030c57506001548290105b156101565760015460199006600014801561035b57506001546000805460649290811015610002579080526003546002919091026000805160206104f683398151915201546009029190910490115b1561041a5760015460008054606492908110156100025781805260015482546002929092026000805160206104f68339815191520154600902939093049350909190811015610002576002026000805160206104d68339815191520154604051600160a060020a03919091169190839082818181858883f15050600154825460649450909150811015610002579080526002026000805160206104f683398151915201546003805460099290920292909204900390556104c9565b5090565b6001546000805460649290811015610002578180526002026000805160206104f683398151915201546001548254600392909202939093049350909190811015610002576002026000805160206104d68339815191520154604051600160a060020a03919091169190839082818181858883f15050600154825460649450909150811015610002579080526002026000805160206104f683398151915201546003805491810292909204900390555b60018054810190556102c956290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e564
Deployed Bytecode
0x606060405236156100615760e060020a600035046313af4035811461006c5780633feb5f2b146100a15780638da5cb5b146100f05780639af1d35a14610102578063b4f40c611461010b578063b69ef8a814610114578063e97dcb621461011d575b61015b61015d610121565b61015b600435600454600160a060020a039081163391909116141561009e5760048054600160a060020a031916821790555b50565b61015f600435600080548290811015610002575080526002026000805160206104d68339815191528101546000805160206104f68339815191529190910154600160a060020a03919091169082565b610185600454600160a060020a031681565b6101a260025481565b6101a260015481565b6101a260035481565b61015b5b60006000600066b1a2bc2ec500003410156101b457604051600160a060020a033316908290349082818181858883f150505050505b505050565b005b565b6040518083600160a060020a031681526020018281526020019250505060405180910390f35b60408051600160a060020a03929092168252519081900360200190f35b60408051918252519081900360200190f35b600080546001810180835534955090935090818480158290116102125760020281600202836000526020600020918201910161021291905b80821115610416578054600160a060020a031916815560006001919091019081556101ec565b50505050336000600050838154811015610002578180526002026000805160206104d6833981519152018054600160a060020a031916909217909155805484919084908110156100025760029081026000805160206104f6833981519152019290925581546021860401918290556003805486019055146102c95760025460035411156102c957600254600454604051600160a060020a03919091169160009182818181858883f150506003805491909103905550505b6001546000805460649290811015610002579080526002026000805160206104f68339815191520154600380549102919091049011801561030c57506001548290105b156101565760015460199006600014801561035b57506001546000805460649290811015610002579080526003546002919091026000805160206104f683398151915201546009029190910490115b1561041a5760015460008054606492908110156100025781805260015482546002929092026000805160206104f68339815191520154600902939093049350909190811015610002576002026000805160206104d68339815191520154604051600160a060020a03919091169190839082818181858883f15050600154825460649450909150811015610002579080526002026000805160206104f683398151915201546003805460099290920292909204900390556104c9565b5090565b6001546000805460649290811015610002578180526002026000805160206104f683398151915201546001548254600392909202939093049350909190811015610002576002026000805160206104d68339815191520154604051600160a060020a03919091169190839082818181858883f15050600154825460649450909150811015610002579080526002026000805160206104f683398151915201546003805491810292909204900390555b60018054810190556102c956290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e564
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,209.2 | 2.5455 | $8,169.05 |
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.