Digital🛢- Will you strike digital oil? — Issue #8 — The $500 winner
Digital🛢(oil) is a brand-new scavenger hunt newsletter that pays you to learn about blockchains. At the end of the month you’re eligible to strike digital oil ($500 paid in USDC) if you complete all checkpoints. Solve quick (2–3 min) and simple (easy) tasks that arrive in your inbox weekly, designed to teach you how to interact with blockchains. A smart contract will select one eligible address at random every month and will send $500 in USDC to the winning address.
And the winner is…
This morning I activated the raffle draw in the smart contract. You can see the transaction here on PolygonScan.
The winning address was:
Congratulations! As part of that transaction the contract automatically transferred 500 USDC to the address, as can be seen here on PolygonScan.
You’ll also see that the smart contract no longer has 500 USDC in it’s balance:
For nerds — How was the winner chosen?
The winner was chosen pseudorandomly using the block number that the “draw raffle” transaction was minted in. Since the block number isn’t something I or you can control, it is considered random enough and the raffle is considered fair. There are some more advanced methods to make random selections using external (to the blockchain) data sources provided by Oracles (maybe you’ve heard of Chainlink), but for our experiment using the block number was sufficient.
How is the block number used?
The block number is divided by the number of participants that completed all four tasks (13 subs in this case), and the remainder of the division is used to select the winner in an array of possibilities. In the case of our raffle, the block where the transaction was mined has block number 26307255, which is exactly divisible by 13. Therefore, the remainder of the division was 0, so the first account to complete the 4th task was selected as the winner.
Current number of subscribers: 83
Number of subscribers when first Oil Strike started: 64
Number of Subscribers that sent their Metamask address: 22
Number of Subscribers that completed all 4 tasks: 13
Those are pretty good numbers for our first Oil Strike!
I’d like to have 100 subscribers before starting the second Oil Strike. Share with your friends to help get us there.
Oil Strike #2
I have yet to decide what we’ll be doing for our second Oil Strike. I hope to send out an email with our plan and instructions next week. It would help tremendously if I got some feedback from the community about:
- General comments about the experience
- What you liked the most
- What I can do better
- What kind of content you’d like to see in the next Oil Strike
Just reply to this email with your comments.
One of my Favorite Tweets this Week
I thought this tweet depicting tokenomics was hilarious. Check it out!
Actually, now that I think of it, maybe the next Oil Strike should be about tokenomics. 🤔
Until next week. Remember to share so we get to 100 subs before our next Oil Strike starts.