Source Code
Latest 25 from a total of 164 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Enter | 14459578 | 1459 days ago | IN | 0 ETH | 0.0005359 | ||||
| Set Owner | 14459560 | 1459 days ago | IN | 0 ETH | 0.00077116 | ||||
| Set Owner | 6521816 | 2716 days ago | IN | 0 ETH | 0.00011577 | ||||
| Transfer* | 6036811 | 2797 days ago | IN | 0.000001 ETH | 0.00005788 | ||||
| Enter | 5796173 | 2838 days ago | IN | 0 ETH | 0.00004484 | ||||
| Enter | 5796148 | 2838 days ago | IN | 0 ETH | 0.00008652 | ||||
| 0xeebf9808 | 5199847 | 2941 days ago | IN | 0 ETH | 0.00011657 | ||||
| 0xeebf9808 | 5199818 | 2941 days ago | IN | 0 ETH | 0.000116 | ||||
| Transfer | 5199786 | 2941 days ago | IN | 0.00001 ETH | 0.00011456 | ||||
| Transfer | 5199771 | 2941 days ago | IN | 0.00001 ETH | 0.0000948 | ||||
| Owner | 5199255 | 2941 days ago | IN | 0.00001 ETH | 0.00008748 | ||||
| Owner | 5199169 | 2941 days ago | IN | 0 ETH | 0.00008748 | ||||
| Set Owner | 5199124 | 2941 days ago | IN | 0 ETH | 0.00011577 | ||||
| Set Owner | 4265290 | 3115 days ago | IN | 0 ETH | 0.00055569 | ||||
| Enter | 4265284 | 3115 days ago | IN | 0 ETH | 0.0005381 | ||||
| Enter | 1309108 | 3635 days ago | IN | 0.1 ETH | 0.00481165 | ||||
| Enter | 1260751 | 3643 days ago | IN | 0.05 ETH | 0.00482935 | ||||
| Transfer | 1255526 | 3644 days ago | IN | 0.025 ETH | 0.00055882 | ||||
| Transfer | 1220581 | 3650 days ago | IN | 2 ETH | 0.00215596 | ||||
| Transfer | 1220446 | 3650 days ago | IN | 1 ETH | 0.005 | ||||
| Transfer | 1220280 | 3650 days ago | IN | 14.97 ETH | 0.005 | ||||
| Transfer | 1216369 | 3650 days ago | IN | 0.05 ETH | 0.00191586 | ||||
| Transfer | 1216358 | 3650 days ago | IN | 0.05 ETH | 0.00191586 | ||||
| Transfer | 1216355 | 3650 days ago | IN | 0.05 ETH | 0.00191586 | ||||
| Transfer | 1216349 | 3650 days ago | IN | 0.05 ETH | 0.00191586 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 6036811 | 2797 days ago | 0.000001 ETH | ||||
| Transfer | 5199847 | 2941 days ago | 0 ETH | ||||
| Transfer | 5199786 | 2941 days ago | 0.00001 ETH | ||||
| Transfer | 2440139 | 3448 days ago | 0 ETH | ||||
| Transfer | 2440089 | 3448 days ago | 0 ETH | ||||
| Transfer | 2440045 | 3448 days ago | 0 ETH | ||||
| Transfer | 2439949 | 3448 days ago | 0 ETH | ||||
| Transfer | 2439085 | 3448 days ago | 0 ETH | ||||
| Transfer | 2439031 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438711 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438517 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438507 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438491 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438482 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438476 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438473 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438465 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438459 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438438 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438435 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438433 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438418 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438411 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438368 | 3448 days ago | 0 ETH | ||||
| Transfer | 2438359 | 3448 days ago | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
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
Contract ABI
API[{"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
Net Worth in USD
$5,396.03
Net Worth in ETH
2.547068
Token Allocations
ETH
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $2,119.82 | 2.5455 | $5,396.03 |
Loading...
Loading
Loading...
Loading
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.