Skip to content

🆑 Cryptolotto is a blockchain-based, Ethereum powered lottery, which gives to users the most transparent and honest chances of winning😉

Notifications You must be signed in to change notification settings

Cryptolotto/Cryptolotto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Cryptolotto - Ethereum powered blockchain lottery

N|Solid N|Solid

Cryptolotto is a blockchain-based, Ethereum powered lottery, which gives to users the most transparent and honest chances of winning.

Cryptolotto_banner

Table of Contents

  1. Overview
  2. List of games
  3. How to play
  4. Explainer video
  5. The algorithm of picking a winner
  6. Features
  7. Frequently Asked Questions
  8. Contact Support

Overview

Cryptolotto is a powered by Ethereum DApp (decentralized application). The backend code is running on a decentralized peer-to-peer network and is presented by 14 smart contracts and a front-end. Cryptolotto works autonomously and with no entity controlling the key functions. The Cryptolotto's data and records of operation are cryptographically stored in a public, decentralized Ethereum blockchain network.

The main idea of Cryptolotto is straightforward: people from all over the world contribute equal amounts of ETH to one wallet during the set period of time. When a timer ends, this smart-contract powered wallet automatically sends all received ETH to one randomly chosen wallet-participant.

Cryptolotto_demo

List of Games

Name Duration Price Contract Address
7 days 7 days 0.01 ETH 0x118f17f1c67bc53e6341de3f9b6112abf81505f0
1 day 1 day 0.02 ETH 0x106302aa07955306c31b8e916a16500482016ec2
6 hours 6 hours 0.03 ETH 0x51f37f32cd84908f58eb2c5b7e141b61d5774f0a
1 hour 1 hour 0.05 ETH 0x11320d0b29e59da6b1b08a85e9d689ec4ed42e6c
10 minutes 10 minutes 0.1 ETH 0xcc208c28644d60fa0eae08c4b19521e27ebcddfa

How to play

Please watch our explainer video on YouTube. We hope it will clear all your questions.

  • Use an Ethereum. To start playing, you should have one of these wallets: Ethereum Wallet, Parity Wallet, MyEtherWallet or Metamask. Top up your wallet with enough amount of ETH first, before you start to play.
  • Select your Game. 5 games are running simultaneously. Each game has different duration and entrance cost. Entering the same one game more than once is allowed. Also, you can join all games at the same time.
  • Copy the wallet address. Be sure to send your funds to the right wallet address. Each game has its own unique address presented on the Home page as well as on our official Github page.
  • Send your funds. Each game has its own price. To join the game, you need to send the right amount of ETH to the given address. If you get everything right, you will find your wallet address in the list of players.
  • Wait for result. Join our Telegram channel to receive notifications about Jackpot winners. If you are the winner, then you will receive all the Jackpot amount back to your wallet immediately after the end of the game.

Tutorial

Please watch a tutorial video on YouTube.

Features

  • Play safely. You can join the game safely, even if there are no other players at the time. If by the end of the game no one joins besides you, you will automatically receive your ETH back to your wallet immediately.
  • Get results. Recieve instant notifications on your phone by joining our Telegram. Get useful information about a name of a game, jackpot amount in ETH and USD, timestamp, winner's wallet address and TX hash.
  • Works worldwide. Everyone it the world can play the Cryptolotto. There are no borders, limitations or special terms. To start playing, it’s enough to have an Internet access, an Ethereum wallet and ethers. Cryptolotto is not limited to only one country, doesn’t require a special citizenship and is free of any bureaucracy.
  • Play all games. In Cryptolotto you can participate in one game unlimited amount of times. Also, you can play in all games simultaneously. It increases chances to win, but remember this not guarantees a win because a winner is always picked randomly.
  • MetaMask supported. Play the game in one click by using MetaMask wallet. Having Chrome or Firefox browser and MetaMask makes the process of playing in Cryptolotto even more simple and user friendly. No need to copy&paste addresses and ticket prices, just click one button and you will join the game right away!

The algorithm of picking a winner

    }
    
    /**
    * @dev Get random number.
    * @dev Random number calculation depends on block timestamp,
    * @dev difficulty, number and hash.
    *
    * @param min Minimal number.
    * @param max Maximum number.
    * @param time Timestamp.
    * @param difficulty Block difficulty.
    * @param number Block number.
    * @param bHash Block hash.
    */
    function randomNumber(
        uint min,
        uint max,
        uint time,
        uint difficulty,
        uint number,
        bytes32 bHash
    ) 
        public 
        pure 
        returns (uint) 
    {
        min ++;
        max ++;

        uint random = uint(keccak256(
            time * 
            difficulty * 
            number *
            uint(bHash)
        ))%10 + 1;
       
        uint result = uint(keccak256(random))%(min+max)-min;
        
        if (result > max) {
            result = max;
        }
        
        if (result < min) {
            result = min;
        }
        
        result--;

        return result;
    }

Each wallet-participant gets ${uint _number} when he joins the game. Random number determination depends on current block timestamp, block difficulty, block number and previous block hash. We set determination between min and max values. Additional conditions, in case something goes wrong, are set to prevent contract from sending Jackpot to invalid address.

Frequently Asked Questions

Please follow this link to find Cryptolotto FAQs

Contact Support

If you have any questions about this game please contact us at [email protected]