ENS Raffles POC
Raffle Proof of Concept on Ethereum and Arbitrum Testnet
Last updated
Raffle Proof of Concept on Ethereum and Arbitrum Testnet
Last updated
With the purpose of understanding the feasibility of this Raffle system dedicated to ENS domains the ENS Raffles team developed a Proof of Concept of raffle using
the test version of ENS domains available on Ethereum Goerli
Arbitrum Goerli to develop ticket sales (so as to test communication between L1 and L2)
Chainlink to determine winners in a trustless way
To join a raffle, you only need to have configured the Arbitrum Goerli test network in your wallet. This can be done quickly using Chainlist.
Once you've select the raffle you are interested in, you just need to choose the number of tickets you intend to purchase and submit a transaction.
Remember that in this POC the prices are in AGOR. If you do not own any, you can bridge GoerliETH to AGOR using Arbitrum Bridge To get GoerliETH you can use ENS faucer r this other faucet offered by chainlink
The counter represents tickets sold against the total number of tickets needed to reach the softcap. In the upper right corner, however, we can see the tickets already held for the selected raffle.
To create a new raffle, you just need a testnet ENS domain available on Goerli network. You can discover more about it here.
Once the wallet is connected, the ENS domains in the wallet are automatically shown, so you can select the one to be included in the raffle
If you don't find your domains, probably it's because they're Wrapped. To use it with ENS Raffles the ENS domain MUST be Unwrapped. In order to manage your ENS Domains, you need to visit the page dedicated to your domains on ENS app
Once the domain is selected, we need to choose the characteristics of the raffle that is going to be created (on Layer2):
Softcap (AGOR) - Since the raffle takes place on Layer2, currently the ticket purchase price is in AGOR. Here you need to decide on the minimum amount you are willing to sell the domain for
Deadline - Choose when this raffle will end
Minimum tickets to sell - Once the minimum revenue target has been defined, it is necessary to choose how many tickets must be sold to reach it
Suppose we set a softcap of 10 $AGOR, then the minimum revenue the domain owner will get is 10 $AGOR. Then we decide that these 10 AGORs will be achieved by selling 1000 Tickets.
Implicitly, we chose that the price of one ticket is 0.01 AGOR.
To confirm and create the raffle, you have to give authorization for the withdrawal of ENS domains from the wallet. This is because the domain must be in an escrow contract during the raffle, so as to ensure that the winner will get his or her prize.
A few minutes after the transaction is successful, the raffle created is visible on the Homepage.
The raffle was successfully created. The price of a ticket, as anticipated, is 0.01 $AGOR