Skip to content

Implement lottery #3

@yagizsenal

Description

@yagizsenal

To attract users to create more transactions, we can implement lottery in the system.

In the lottery, every user buys a ticket with a fixed price and enrolls in the lottery. The price of the ticket paid by the user is added to the prize pool. A user can enroll multiple times but needs to create separate transactions for all of them (This requires support for multiple transactions in the same block, therefore can be discussed) .

After a minimum number of users are gathered and a minimum amount of time has passed, transfer the tokens in the prize pool to the winner that is selected randomly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions