You are on page 1of 1

3/25/2016

Accountbe181...dae4econtract

Search block index or any hash

Get Address

Transactions Smart Contracts

NEW

waxmiguel Sign Out


Home Account Contract

Homestead

Contract PiggyBank
Solidity sources
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86

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;
}
}

ABI

ask us anything

2014-2015 EtherCamp

https://live.ether.camp/account/be181da06d93867af0a3ffadcebe345ec35dae4e/contract

1/1

You might also like