Weenit
How it works
Weenit is a decentralized application that allows the creation of a lottery for a product or service offered on the Deelit platform. Weenit has the unique feature of interfacing with the Deelit protocol to secure transactions between winners and sellers.
How does it work?
Weenit
1. Creating the Lottery
Weenit allows a seller to create a lottery for a product or service they offer on Deelit. To do this, the seller must:
- Define the lottery parameters:
- The product or service to be won.
- The cryptocurrency accepted for ticket purchases (native cryptocurrency of the network or ERC20).
- The number of tickets available.
- The price of the ticket.
- An expiration date for the lottery.
- Create the lottery on the blockchain of their choice.
2. Participating in the Lottery
Once the lottery is created, participants can purchase tickets to enter the lottery. There is no limit to the number of tickets a participant can buy. To purchase a ticket, the participant must issue a transaction on the blockchain of the lottery network to pay for the ticket. A ticket number will then be assigned to them.
In addition to the ticket price, a commission is paid to fund the operation of the lottery. This commission consists of the lottery fees and the Deelit protocol fees. These fees can be viewed on the dedicated protocol networks and Weenit networks pages.
3. Lottery Drawing
Once the lottery is complete (all tickets are sold), the lottery drawing can be requested. This drawing is done by calling the lottery smart contracts.
This triggers a request for a random number using a VRF (Verifiable Random Function). Weenit uses Chainlink VRF or Gelato VRF solutions depending on the blockchain to ensure a random and verifiable draw.
This process is not immediate as it requires waiting for the random number to be generated by the VRF. Once the random number is generated, the lottery winner is determined.
4. Payment to the Deelit Protocol
The seller finalizes the lottery by making the payment to the Deelit Protocol through the lottery. By making this payment, the seller commits to delivering the product or service to the lottery winner.
Once this payment is made, the transaction between the winner and the seller is secured by the Deelit protocol. You can consult the dedicated Deelit protocol page for more information on how it works.
5. Lottery Cancellation
The lottery can be canceled at any time by the seller, for example, if the product or service is no longer available.
Additionally, a lottery can be canceled by anyone once the expiration period is reached and the payment has not been made.
Once canceled, participants can redeem their tickets by making a transaction on the blockchain of the lottery network.
Note that commission fees are also refunded to the participant in case of ticket reimbursement.