Here is the code for someone performing a transfer of my token
function transfer(address to, uint256 value) public returns (bool) {
require(value <= _balances[msg.sender]);
require(to != address(0));
uint256 tokensToBurn = value.div(100000).mul(7);
uint256 tokensToDividend = value.div(100000).mul(3);
uint256 tokensToTransfer = value.sub(tokensToBurn).sub(tokensToDividend);
_balances[msg.sender] = _balances[msg.sender].sub(value);
_balances[to] = _balances[to].add(tokensToTransfer);
_totalSupply = _totalSupply.sub(tokensToBurn);
emit Transfer(msg.sender, to, tokensToTransfer);
emit Transfer(msg.sender, address(0), tokensToBurn);
emit Transfer(msg.sender, ?, tokensToDividend);
return true;
}
As you can see, 0.007% of the tokens are burned, and I want 0.003% to be sent to everyone who holds the token. I've put a '?' where I want the holder addresses to go. How do I go about giving out the tokensToDividend value equally among all holders?