i need a smart contract developer.
i need smart contract to send dividends who own an erc 20 token (we will call MS token) in his address
step one: snapshot of eth blockchain of MS token contract address (token contract address) excluding developer address.
step two: read how many eth is there in one specified ETH address (DEV ETH ADDRESS)
step tree: send (montly) ETH in proportionaly of token holded in our address.
snapshot of ETH blockchain of MS contract holder:
address A: 150 token
address B: 100 token
address C: 250 token
total 500 token
addres DEV: 1000 token (excluding from dividends)
address WALLET ETH: 1 eth
smart contract read that there are 500 token in pubblic address, 1000 token in DEV address, and 1 ETH IN WALLET
1) 40% of eth in wallet ETH will send in other wallet (if in ETH wallet there is 1 ETH, i need 0.4 ETH sended in other address)
2) 60% of eth in wallet ETH will divided who hold token,so:
address A (150 token 30% of total token) receive 0.18 ETH - fee
address B (100 token 20% of total token) receive 0.12 ETH - fee
address C ( 250 token 50% of total token) receive 0.30 ETH - fee
total sent to 40% address = 0.4 ETH - fee
total ETH send 0.6 ETH - fee
total ETH sended 1.00
i thinks is so clear.
payments will be made after developing smart contract.