I'm creating a contract where people transact by using locked ERC20 tokens.
For example - you'd have 500 of token A locked in the DAO contract.
You decide to send 100 of token A to some other account. The transaction fee was set to 2% of the transaction value. So 98 tokens went to the account you sent them to and 2 tokens need to be paid out to DAO holders in proportion to their holding.
Since I'm not allowed to iterate over accounts because of the gas limit - is there any way I can achieve this?
DAOholders without iterating and hitting the gas limit – Mislav Javor Nov 28 '17 at 12:49