Professional Documents
Culture Documents
Account Be181... Dae4e Contract
Account Be181... Dae4e Contract
Accountbe181...dae4econtract
Get Address
NEW
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
}
ABI
ask us anything
2014-2015 EtherCamp
https://live.ether.camp/account/be181da06d93867af0a3ffadcebe345ec35dae4e/contract
1/1