draffle

Crates.iodraffle
lib.rsdraffle
version0.1.0
sourcesrc
created_at2021-11-05 01:25:16.283548
updated_at2021-11-05 01:25:16.283548
descriptiondRaffle program
homepage
repository
max_upload_size
id477131
size46,919
(moneytoad888)

documentation

README

dRaffle program

The goal of the program is to provide permissionless raffles.

An arbitrary number of prizes can be placed in each raffle, the end time, max entrants, the proceeds mint and ticket price are defined at creation.

Once the raffle ends time is reached, a permissionless call fixes the current blockhash as the randomness seed

Then each prize can be claimed by the public key matching the winning ticket index. The winning ticket index for each prize is obtained deriving the randomness using the prize index, hashed then modulo the total of entrants.

https://docs.chain.link/docs/chainlink-vrf-best-practices/#getting-multiple-random-number

Commit count: 0

cargo fmt