Lotto

Specifics:

  • Lotto Ticket Fee for 1 ticket: 1 MILK

  • Single User Lotto Entry Limit: 5 Lotto Tickets at a time

  • Paying for one ticket (1 MILK) will give users a random 4 digit combination with each digit being between 1-9, for e.g. "8-9-3-2"

  • In the UI, users can choose to enter a multiple of 1 MILK, which will buy them multiple tickets.

How to win:

To win the lotto jackpot (50% of the entire lotto pool), users need to match all 4 numbers on their tickets in the same position as the 4 winning numbers.

If you don't match all 4, no need to worry. As long as you match 2 or more numbers in the correct position, you are guaranteed to win a reward.

Winning Ratio:

  • Match all 4 numbers in the exact order = win 50% of the pot (or split the pot if more than 1 winner).

  • Match 3 numbers in the exact order = win or split 20% of the pot.

  • Match 2 numbers in the exact order = win or split 10% of the pot.

  • Burn remaining 20% of the pot.

For example, if the final 4 winning numbers are "1-9-3-2":

  • "1-9-3-2" = match all 4

  • "1-9-2-2" = match 3

  • "2-3-3-2" = match 2

  • "1-2-1-2" = match 2

Lotto phases:

The first lottery round will last for 3 days, the subsquent ones will be gradually reduced.

An example:

Phase 1 - Buy Tickets

  • Go to https://milkshakeswap.finance/lottery and buy your tickets.

  • The lotto jackpot will accumulate at the top of the page with each ticket bought.

  • Users will receive a ticket (comprised of 4 digits) for each 1 MILK paid.

Phase 2 - Lotto Draw!

  • The 4 winning lotto numbers are drawn and will appear on the page.

  • Each participant's winnings will be automatically calculated based on their ticket numbers and shown on the page.

  • Users can claim winnings if they have any.

  • Users will also be able to see the lotto results: How many users matched all 4 numbers, 3 numbers and 2 numbers.

Phase 3 - Celebration and Sharing

If you won, congrats! Share with your friends or in our community groups.

The next lotto starts soon!

How are ticket numbers drawn?

The lotto aims to be completely random. Even though the ticket numbers given out are determined by a front-end logic, there is an extremely low chance that anyone is able to determine the 4 winning numbers ahead of time.

  • The 1st lotto number will be determined based on the %10 remainder of a hash encoded by the blockhash and the number of participating users at the entry deadline.

  • The 2nd lotto number will be determined based on the %10 remainder of a hash encoded by the blockhash and the total pooled MILK balance at the entry deadline.

  • The 3rd lotto number will be determined based on the %10 remainder of a hash encoded by the blockhash and the timestamp of the last lotto participant at the entry deadline.

  • The 4th lotto number will be determined based on the %10 remainder of a hash encoded by the blockhash and the block difficulty at the entry deadline.

For the exact code on how the above is calculated, please refer here.

Last updated