How to Refer Tickets
Megapot’s contract is designed for you to be able to refer tickets to the jackpot from your site. This is done by adding your wallet address as thereferrer parameter to the ticket purchase function.
Let’s take a look at the purchaseTickets function:
referrer: Your wallet address. Triggers the contract to pay you 10% of the ticket price for each ticket purchased.value: The number of tickets to purchase, in szabo (6 decimals). 1_000_000 szabo = 1 ticket.recipient: The address of the recipient of the tickets. This is the wallet of the person purchasing the tickets.
referrer parameter.
Example
Let’s say you want to refer 10 tickets to the jackpot. You would set thereferrer parameter to your wallet address and the value parameter to 10 tickets.
