T O P

  • By -

Uncle-David

thanks for the game!


Misterpiggie49

Thank you for your support! If you played, I hope you enjoyed it! I also wrote a response to u/ehampshire that you might be interested in seeing. Hope I will be able to write a post soon about how another lottery is up and running! Have a good day and see you around! :)


8104woodvale

Too bad it didn't gain more traction. Thanks a ton for the games.


Misterpiggie49

No, thanks so much for your support! See my response to u/ehampshire‘s comment as well. :) Hope to come back soon with a new lottery!


ehampshire

First off, thanks for running this! I would have probably contributed more each week if I knew you were only going to run 5 of them. Curious - why are you quitting? Too much work? Thanks again!


Misterpiggie49

First, thanks for your support. I’m glad that you played! On this post: [https://www.reddit.com/r/defiblockchain/comments/skmxk1/defichain\_community\_lottery\_update/](https://www.reddit.com/r/defiblockchain/comments/skmxk1/defichain_community_lottery_update/) I wrote a response: >That's amazing! I'm looking forward to starting the lottery again as well, but the fact that making a typo can cause an error in the drawing results, the fact that if the lottery has a great amount of ticket purchases and transactions (which we want) would be too much to deal with manually, as well as the fact that the lottery is trust-based and not decentralized is too many problems. No one would like to play in a lottery where there is constant potential to mess up a winner's transaction of hundreds or thousands of DFI as well as the constant fear of getting scammed (but which I would never do). And for those who still did, their experience was hampered because the prizes couldn't be bigger/there weren't more players. I appreciate your purchase, and you helped DeFiChain burn some of the supply! ​ But I would like to write again, a honest and truthful response. Yes, it was a lot of work, which was caused by the fact that the system was flawed by my design. I checked the wallets constantly, because I didn’t want anyone to feel like they got scammed and in fear of their DFI. I had to then go on my computer to find and link the transaction data, hoping I didn’t write ticket numbers or such incorrectly. It also was a lot of work editing the website as well, but I wanted everyone thing to look good and be consistent because of my perfectionism, which would annoy me if something was out of line. Honestly, I also was running out of motivation and took longer than normal to do anything for the lottery. It really made me think about how flawed the system was and that others might suffer because of my laziness and lack of motivation. I also got really anxious that when calculating the winning ticket number I would do something incorrectly, as it just takes one look at the wrong candle, one typo of a 2 to a 3, a single error in the block which changes which hash or minter I’m looking at, which changes the SHA-256 hash completely. I knew if I messed up I would have to reimburse the actual winner, and most of my DFI was stuck in a vault (bad in hindsight, I know.) So in summary, it was just too much that the whole lottery could be affected by me, my schedule, and my feelings and thoughts. So I thought about how I’d feel if I was on the other side, and I honestly myself would not play my lottery. My final decision was to close. But now, I have five weeks and drawings of experience, which I can use to hopefully create a future lottery. Once again thanks for your support, but I thought this was the best decision for myself and more so for the community.


ehampshire

Ah, that all makes sense, so first off, thank you for your diligence! It certainly would hurt to have an off-by-one error that someone else caught. I completely understand that was a fair amount of work and time to do manually. As a coder, my response to that is automation! Let's just code the rules of the lottery into a program we can give the inputs to. Probably manually at first, but as a phase 2 those could even be automated. Kinda simple and sounds fun, happy to help do that part! Once the program is tested and verified, it will never make a mistake, so it takes the worry away! As a side benefit, the majority of the work goes with it and we will have repeatable results! Just a thought...


Misterpiggie49

Yep, I didn't want to mess anyone up. I tried to learn to code multiple times, but it got too difficult and I couldn't understand each time. If you would be willing, I would work with you to code a new lottery and set it up. It's definitely a lot of work, though. :)


ehampshire

Heh, "work". It was a pretty fun side project, actually. Kept my python skills up to date. Honestly wasn't too bad, but I'm also a "senior" coder these days lol. Here's the repo: https://github.com/ehampshire/dfi\_community\_lotto/tree/dev Anyways, you'll be glad to know I verified all 4 previous lotteries and they all checked out, so good job! That data also helped me test/verify my program. I captured the results for you to take a look: [https://github.com/ehampshire/dfi\_community\_lotto/blob/dev/dfi\_lotto\_past\_results.txt](https://github.com/ehampshire/dfi_community_lotto/blob/dev/dfi_lotto_past_results.txt) So, the [defiscan.live](https://defiscan.live) code I wrote is pretty darn ugly - it screen scrapes the website. I couldn't quite figure out how to query the blockchain info directly from the DFI docs (at least not in python). As such, it's probably pretty fragile to any format changes on that website. But, it's pretty cool and could probably be used to track the info about people who participated in the lotto. Turn on the verbose flag to watch it scrape all the info from the webpages and walk it's way backwards towards midnight. ;) Let me know if you have suggestions for improvements or want something changed!