DELOT
  • INTRODUCTION
    • Overview
    • Features
    • Architect & Money Flow
    • Official links
    • Contracts
    • Wallets
  • LOTTERY GAME
    • Overview
    • How it works
    • How to join a round?
    • How to calculate number of player’s tickets in a round?
    • Auto Pool
    • How to determine winners?
    • How deposited tokens are used?
    • Fully Automatic System
    • Use Cases
    • Explain on the red text
  • TOKENOMICS
    • Token
    • Buy DELOT
    • How to bridge your DELOT?
    • Token Distribution
    • Audit
    • Airdrop
  • NFT
  • Yield Farming
    • Providing liquidity to get LP Tokens
    • Reward calculations
    • Staking and Withdrawal
    • Harvesting
  • Staking
  • Team KYC
  • Roadmap
  • FAQ
    • FAQ
    • Disclaimer
  • BETA TEST
    • Overview
    • How to participate
    • Benefits
  • Archives
    • Presale
Powered by GitBook
On this page
  1. LOTTERY GAME

Fully Automatic System

PreviousHow deposited tokens are used?NextUse Cases

Last updated 2 years ago

is used as the solution to make lottery game can run endlessly.

Basically, Lottery Smart Contract is . ->

“performUpkeep” function in Lottery Smart Contract is designed to:

  • Change state of a round: Start -> Active -> End

  • Round state is Start: proceed to transfer tokens from Auto Pool to Lottery Pool based on settings in Auto Pool of players.

  • Round state is End:

    • Recalculate tickets of players, reset Hold Tickets to zero if they do not hold enough token as recognized in the first deposit.

    • Call to to get randomness numbers

    • Find winners based on random numbers

    • Reward the prize winners

    • Initialize new round

Chainlink Automation
Keeper-compatible
Upkeep on BSC
Chainlink VRF