Soon I finish working with a smart contract.
Distribution of income from lotteries
1. After each lottery on Eth, the smart contract distributes the revenue among the owners of the tokens.
2. Income is divided by the number of owners in proportion to the number of tokens they own.
3. The owners of a small number of tokens do not participate in the section.
4. The minimum amount that the owner of tokens can receive is 0.001 Eth.
5. If the income was 0.1 Eth, then with the number of tokens in the turnover equal to 33 million pieces, we can calculate how much one token will be and calculate which owners fit into the minimum payment requirement.
6. After that, the amount of profit, minus interest on already invested investors, we divide by the selected number of applicants.
7. Investors who have already invested will receive fixed interest from the profit, the remaining part will be distributed among the owners of the tokens.