I an in search way to send tokens from a contract to a list of all addresses (an array or mapping) without using a loop(as I know gas fees for this can become a huge issue).
I have a contract, that when someone new enters it, I want to send the balance of a specific token to all the other addresses that are currently "participating" based on a % they hold of another Token(the contracts internal token). I cannot think of a way of either setting the "balance" manually, or paying out automatically, that does not require looping through a list.
Simply updating "balances" based on a "ratio" does not seem to work as its a staking contract and this is a secondary token (such as a dividend token) that we are trying to account for. There for, it seems necessary to do bulk Transfers (similar to how dividend tokens do them I am assuming) so that new entries do not receive rewards they have not earned.
Any assistance is greatly appreciated.