trying to use this as an example to learn how contracts work.
I believe i've identified the problem in the contract, but i would love to hear from someone who actually knows.
I think the problem is this line:
while (balance > investors[k].amount * 3 / 100 && k < total_inv) //exit condition to avoid infinite loop
total_inv is always going to be 0.
so this basically never runs. the only investor that is paid is at id 0, the first investor. ie: the owner.
Can someone else confirm?