# Lottery

PaySwap runs a lottery funded by the marketplaces (CanCan, eCollectibles, Paywall) but also offers businesses/users the ability to launch and run their own lottery.

Playing a lottery gives you a chance to win huge prizes! It's easy, fair, and you can enter as often as you like as long as you have enough tokens to buy a ticket.

View smart contract: Each lottery panel has a link to view its contract on its left section

## **Specifics:**

* Individual user Lottery entry limit: No overall limit, but only 100 tickets can be bought at a time.
* Paying for one ticket will give users a random 6-digit combination with each digit being between 0-9, for e.g. “1-9-3-2-0-4”. Match numbers from the left to win prizes—the more numbers that match, the bigger the prize pool you'll share in.
* Lottery uses Chainlink's implementation of VRF for true, secure randomness.

## Ticket costs and bulk purchase discount

Lottery ticket prices are set at the start of the new lottery round.

Buying multiple Lottery tickets at once gives a bulk discount on your purchase. You can buy as many as 100 tickets in one purchase.

## **How to win**

Match numbers, **from the left side of your ticket**, to the winning numbers drawn at the end of a Lottery round.

* Matching even just the first number will win you a small prize.
* Match more numbers to win a share of a larger prize pool.

## **‌**Prize eligibility

‌There are a total of six lottery balls, from 0 to 9, on each ticket. To win, your numbers need to match the drawn numbers in the same order as the lottery balls, starting from the left of the ticket. For example:

Drawn numbers

![Drawn Numbers](https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fgit-blob-d44934f5392dea1d2bb28e8420064468c70e061a%2Fimage%20\(148\).png?alt=media)

Your ticket's numbers

![Your Ticket A](https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fgit-blob-b3a1f70cb23f5f2af63af73e588a42cd1c817654%2Fimage%20\(95\)%20\(1\)%20\(1\).png?alt=media)

In the example above, Ticket A, five of the ticket's numbers match the same drawn numbers, in the exact same order: all except the fourth one.

However, since the fourth digit does **not** match the drawn number, only the first three digits count as matching in order. This would win a "Match first 3" prize.

![Your Ticket B](https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fgit-blob-8064269bec7ac2fee02893519550c2937de833d7%2Fimage%20\(149\).png?alt=media)

Example Ticket B. Here's an unlucky one. Even though the last five digits match, the first digit doesn't match, so this ticket doesn't win anything at all.

You will only share in prizes from the highest prize bracket you are eligible for. A ticket matching the first three numbers will only be eligible for prizes from the match-three bracket, and not for the match-one or match-two brackets.

**Remember: The digits must match in order, starting from left to right.**

## Prize sharing across prize brackets

‌After a round is drawn, and tickets with matching numbers are determined, the prizes are awarded. The amount won by each ticket will depend on how many other tickets won in the same prize bracket.

‌For example, if you have the only ticket that matched three numbers in order, and the predetermined share of the prize pool for your bracket was 2000 tokens, you'll receive the full 2000 tokens.

‌If, however, you and three other people match three numbers in order, the 2000 tokens would be split between the four winning tickets, meaning you would receive 500 tokens.

See the [Lottery FAQ for a breakdown of prizes](lottery-faq#how-are-prizes-broken-down-between-brackets) across each bracket.

[Get further support from the community here.](https://paychat.payswap.org/#/room/%23paycom%3Amatrix.org?via=matrix.org)
