I am trying to figure out how to have the balance of all players reset to (amount) when a certain condition happens. This is the function that will update a specific player balance. How do I make it reset the balance of all players at once?
mapping(address => uint256) investments;
mapping(address => uint256) joined;
mapping(address => uint256) withdrawals;
mapping(address => uint256) withdrawns;
// add deposit to curent deposit, and update joined timer
investments[_customerAddress] = investments[_customerAddress].add(_incomingTronix);
joined[_customerAddress] = block.timestamp;
emit Invest(_customerAddress, _incomingTronix);
}