I'm thinking of writing a contract in which the payoff is proportionately split amongst N recipients. Is this intractable in ethereum since as the number of recipients grows, this would require N transactions instead of 1, and the gas price would be linear in N?
As a contrived example, let's say I have a virtual boxing match. There are two boxers, A and B, and you can choose to join the pool for each one as a backer with a certain amount of tokens. After the fight, currency is taken from all the supporters of the loser, and then distributed to all the supporters of the winner in proportion to their stakes.
If there were N participants in the loser pool, and M participants in the winner pool, then this would be (N+M) transactions beforehand, and then M transactions after the fight.
send(). Smart contracts usually need to be invoked to operate. – jeff May 28 '17 at 22:37