Luckblocks
  • 🎲LuckBlocks - Decentralized Raffles
  • Lotteries
    • BTC Lottery
    • ETH Lottery
    • POL Lottery
    • CRANNI Lottery
    • Verify
  • Auto Spin Draw
    • How queue works
    • How to configure automation
    • Automate Lotteries Bets
  • Cranni Societas - NFTnodes
  • CRANNI Token
    • Synthetic Tokens Overview
    • Additional Features: Overcollateralization and Integration with Luckblocks Lottery
  • Staking
  • Contracts
  • DAPP
  • DAPP(IPFS)
Powered by GitBook
On this page
  1. Auto Spin Draw

Automate Lotteries Bets

Runs recursive bets for more chance to hit the jackpot on a lucky day

PreviousHow to configure automationNextCranni Societas - NFTnodes

Last updated 7 months ago

The same thing can be done to automate your bets on lotteries, the difference would be the function done.

in order to allow gelato automation bet you have to whitelist gelato with the function toggleGelato() on lottery contract and configure your Gelato msg.sender in the contract, configure interval and max quantity of tickets, with functions setGelatoSender(), gelatoInterval (1 for 1 day, 2 for 1 week, 3 for 1 month) and gelatoMaxQT respectively.

Example on BTC Lottery: Choose function BuyTicket(adress player, uint256 quantity)

Field Explanations:

player > put your wallet address.

quantity > quantity of tickets , should be less or equal max quantity configured before.

interval configured on Gelato should be the same from configured on contract before.

After the interval of time , it will bet again with same parameters as a recurring bet, make sure to have USDT in wallet to pay for the tickets.

⚠️