I am trying to send funds to the users who deposited ethers to my contract. I am currently achieving this by having the list of
address and looping through them sending those addresses ethers. Right now this works for 2-3 users (tested).
My concern now is, if there are about 1000 users to whom I need to
reward ethers. Is it sufficient if my contract has enough ethers to send
fund + gas ? or should the transaction that calls the rewarding method needs to send the sufficient ethers in order to execute the transfers?
I have seen a couple of well known contract making users withdraw their reward instead of sending them automatically. Which one works? if both works then which method is recommended?