LogoLogo
  • Getting Started
  • Games
    • Towers
    • Roulette
    • Lottery
  • Platform Features
    • Leaderboard System
    • Rank System
    • Promo Codes
    • Affiliate Program
  • $GAMES
    • Tokenomics
    • Payouts
  • Platform
    • Deposits & Withdrawals
    • Social Features
    • Support & Resources
Powered by GitBook
On this page
  • Game Overview
  • Key Game Mechanics
  • Ticket Purchase System
  • Pot Building Mechanism
  • Drawing Cycle
  • Fee Structure & Pool Distribution
  • Verifiable Drawing Process・Provably Fair
Export as PDF
  1. Games

Lottery

Our transparent lottery system with verifiable random drawing mechanisms.

PreviousRouletteNextLeaderboard System

Last updated 1 month ago

Try your luck in our transparent lottery system

Game Overview

The Solgames Lottery offers players the chance to win substantial rewards through a transparent and fair drawing system. Unlike traditional lotteries, our system features verifiable randomness and a transparent fee structure where the vast majority of the pot goes directly to winners.


Key Game Mechanics

Ticket Purchase System

Participating in the lottery is simple:

  1. Purchase tickets using SOL

  2. Each ticket has an equal chance of winning

  3. Buy as many tickets as you want to increase your odds

  4. Watch the pot grow in real-time

Tickets are stored securely on the blockchain, ensuring that your entries cannot be lost or manipulated.

Pot Building Mechanism

Our lottery pot grows through multiple sources:

  • Primary Source: 99% of all ticket purchases go directly to the pot

  • Enhancement: A portion of profits from other games is added to boost prizes

  • Rollover Option: Unclaimed wins can roll over to future drawings (optional feature)

This multi-source pot building ensures exciting prize pools even during periods of lower participation.

Drawing Cycle

Lottery drawings occur on a regular schedule:

  • Daily Drawings: Smaller prize pools with more frequent winning opportunities

  • Weekly Mega Drawings: Larger accumulated prizes for bigger excitement

  • Special Event Drawings: Promotional lotteries with enhanced pots

All drawing times are clearly displayed in the platform, with countdown timers for upcoming events.

Fee Structure & Pool Distribution

We maintain transparent operation with a minimal fee structure:

  • Lottery Fee: Only 1% taken from the pot

  • Fee Utilization: Redistributed to the platform's profit pool

  • Winner's Share: 99% of all ticket sales go directly to winners

  • Distribution: Single winner takes all (standard mode) or tiered prizes (special events)


Verifiable Drawing Process・Provably Fair

Our lottery uses a provably fair drawing mechanism:

// Winner Selection Implementation for Lottery
function selectLotteryWinner(ticketEntries) {
    // Calculate total tickets purchased
    const totalTickets = ticketEntries.reduce((sum, entry) => 
        sum + entry.ticketCount, 0);
    
    // Generate secure random number using blockchain-verified randomness
    // This combines an on-chain random seed with the block hash for additional entropy
    const randomSeed = combineEntropy(
        getBlockchainRandomness(),
        getServerRandomness()
    );
    
    // Determine the winning ticket index
    const winningTicketIndex = randomSeed % totalTickets;
    
    // Find the winner based on ticket ownership ranges
    let ticketCounter = 0;
    for (const entry of ticketEntries) {
        ticketCounter += entry.ticketCount;
        if (ticketCounter > winningTicketIndex) {
            return {
                winner: entry.playerAddress,
                winningTicket: winningTicketIndex,
                totalPot: calculatePrizePool(ticketEntries)
            };
        }
    }
}

function calculatePrizePool(ticketEntries) {
    const totalTicketValue = ticketEntries.reduce(
        (sum, entry) => sum + (entry.ticketCount * entry.ticketPrice), 0
    );
    // Apply 1% fee, 99% to winner(s)
    return totalTicketValue * 0.99;
}
Page cover image
Solgames Lottery