ETHEREUM

SMART-CONTRACT

POOL LOTTERY

DECENTRALIZED APPLICATION

NO REGISTRATION AND PERSONAL DATA

ALL YOU NEED IS AN ETHEREUM WALLET

Ethertime - decentralized smart-contract pool lottery on the Ethereum blockchain.
1
Choose a lottery, buy ticket
and get your Game number.
- Choose a lottery and send
ticket price (ETH) to the contract

- The contract registers your wallet
in the lottery and assigns you
a Game number - serial number
of your registration.
2
Wait for the end of the lottery
cycle and Bank for the draw
- During a cycle lottery is going to
the Bank - the sum of all tickets
purchased during the lottery time.


- Lottery fundraising cycles follow
each other continuously 24/7.
For example: every half hour, hour, day, etc.
3
Winning number and payout.
- When the lottery ends, a winning game
number is determined by random number
algorithm
, that are written in the
contract code.

- The contract pays winnings according
to the list starting with the number
the winner by Lottery draw type.
Lottery draw type - you yourself choose a lottery with the right level of risk for you. (see below)
Game numbers are given in the order of wallet registration in the lottery. (confirmed transaction in ETH network).
After the lottery cycle finished, the winning number is determined.
"ALL" - the bank is distributed to all players, start with a winning number.

Due to the specifics of the blockchain network, game numbers begin with "0".

Example: 10 players, ticket price - 1 ETH,
Bank - 8.85 ETH. *

0
Player 1 wallet
1
Player 2 wallet
2
Player 3 wallet
3
Player 4 wallet
4
Player 5 wallet
5
Player 6 wallet
6
Player 7 wallet
7
Player 8 wallet
8
Player 9 wallet
9
Player 10 wallet
For example
7
Player 7 wallet1.60909 ETH
8
Player 8 wallet1.44818 ETH
9
Player 9 wallet1.28727 ETH
0
Player 0 wallet1.12636 ETH
1
Player 1 wallet0.96545 ETH
2
Player 2 wallet0.80454 ETH
3
Player 3 wallet0.64363 ETH
4
Player 4 wallet0.48272 ETH
5
Player 5 wallet0.32181 ETH
6
Player 6 wallet0.1609 ETH
ALL
50%
30%
1.2.3
1 st

* The contract takes away commissions from the general bank - 11.5%. Example: 1 ETH * 10 Players = 10 ETH -11.5% (lottery commission) = 8.85 ETH - bank for the draw.

Game numbers are given in the order
of wallet registration in the lottery.
(confirmed transaction in Eth network)
Due to the specifics of the blockchain network,
game numbers begin with "0".
After the lottery cycle finished,
the winning number is determined.
For example:
* The contract takes away commissions from the general bank - 11.5%.
Example: 1 Eth * 10 Players = 10 Eth -11.5% (lottery commission) = 8.85 Eth - bank for the draw.
Why it's totally fair ?
Our contract code is open to read for all on Ethereum blockchain.
-
No one has access to funds in the lottery and no one can influence the payouts of winnings.
-
As owners of the contract, we can only create new lotteries and delete, and then this function is only possible after the end of the lottery time and payments of all winnings.
-
The application is completely decentralized and that's it works automatically according to the prescribed contract algorithms.
-
You do not need to create account on our website and top up the balance, you only need to have Ethereum on your wallet, choose the right lottery for you at the cost of the ticket, cycle time and type of draw, and send to the address of the contract the amount of ETH equal to the cost of the ticket by metamask or other service, and wait for the results.
How is the winning number generated?
After the lottery is completed, the function to end the lottery and determine the winning number is called, for the basis we take the hash of the participant's block which is in the middle of the players list and the hash of the previous block that went before the function was called.
1. This hash will be used to calculate a new hash using the keccak256 algorithm.
2. Then the keccak256 hash will be converted to a 256-bit number, this is a large number.
3. The number, obtained in the previous step, will be divided by the number of players and the remainder from divisions + 1.
4. The received number will be the winner number.
1* If the lottery cycle is too long, the hash of the middle participant block may not be determined, because according to the rules of the network, only the last 256 blocks for this function can be used, but for improved security, we use a special formula so that the selection of a hash within these last 256 blocks depends on the number of participants, for more details see the code for this function below
Random win number algoritm in contract code.
Smart-contract address.
0x347b3B19Cb4D372050D0efF5bd0F753fBaDD488C (Ropsten test network)
FAQ
What Ethereum services and wallets can I use to buy a ticket?
You can use all the services and wallets for sending Ethereum to the network or Connect to the Metamask Plugin and participate by clicking on "Play", the main thing is that you can install gas limit. Optimal gas limit for buy ticket transaction - 250000 Gas

It is enough to send Ethereum from your address to the address of the contract in the amount equal to the ticket price of your chosen lottery, set Gas limit 250000 and the contract will automatically determine your transaction in the lottery you need, assigns a game number to your wallet and you are in the game.

Exceptions:
-Do not send to the address of the contract from exchange market wallets, exchanges use the gas limit for sending - 21000 gas
-Do not send to the address of the contract from cryptocurrency exchangers.

* We are not responsible for the operation of the services and wallets that you use to send ethereum.
If I bought a ticket to the lottery but no one else participated in this cycle besides me?
If at the end of the cycle no one took part in the lottery all the funds after the end of the lottery return to your wallet address.
How many tickets from my Eth address can I buy in one lottery cycle?
You can buy an unlimited number of tickets, this will increase your chances of winning more Ethereum.
How to test the lottery in test mode using test Eth and network?
On the lottery selection page in the upper left corner, to the right of the logo, you can select a test network.
Create a Ropsten network wallet and get free Ethereum test coins, and then the site and contract code is no different from the main network. This is done so that you can first try how our lottery works for free.
I accidentally sent an amount Eth not equal to the prices of the lotteries what will happen to the funds?
If you send to the contract an amount that is not equal to the exact cost of any from existing tickets, the contract will automatically determine
your funds to the nearest lottery, costing less than the amount sent and will return back the difference, or your transaction will fail and the funds will be returned back.