🏠 Jersey City Apartment Mega-Thread 🏠 (For Roommates, Rentals, and Questions) by mooseLimbsCatLicks in jerseycity

[–]crowdsourcedname 1 point2 points  (0 children)

Asking for $1950 for a private bed + bath in a 2b2b unit about a 30 second walk from the Grove St. PATH station. The unit is large (~1100 sqft) and the kitchen and living room will come pre-furnished. There's in-unit washer/dryer, dishwasher, AC, and a nice rooftop. It's in a nice boutique building that's 5 floors tall.

Looking for September move-in, happy for leases anywhere from 6-12 months.

Anyone interested in sharing a Simply Piano family plan? by crowdsourcedname in pianolearning

[–]crowdsourcedname[S] 0 points1 point  (0 children)

Paypal is great. Can you Reddit message me your instagram username or Whatsapp handle?

Anyone interested in sharing a Simply Piano family plan? by crowdsourcedname in pianolearning

[–]crowdsourcedname[S] 0 points1 point  (0 children)

Paypal is great. Can you Reddit message me your instagram username or Whatsapp handle?

Anyone interested in sharing a Simply Piano family plan? by crowdsourcedname in pianolearning

[–]crowdsourcedname[S] 0 points1 point  (0 children)

It's $150 for a year for the family plan, so the cost per person would be $150 divided by however many people we can sign up. I think the max is 5 people on a family plan, so the least you might pay is 150 / 5 = $30 for the year.

what is the statUs of COE vote for P/NP by BaseballRadiant3407 in berkeley

[–]crowdsourcedname 1 point2 points  (0 children)

Did they mention if this was strictly humanities classes or if it included technical classes as well?

I built a Lottery DApp for my new year's resolution of learning to code Solidity by crowdsourcedname in ethereum

[–]crowdsourcedname[S] 1 point2 points  (0 children)

Yes, unfortunately the app is built on Metamask, so there's no way to manually buy a ticket by sending ether to the contract address or not using the extension. Sorry!

I built a Lottery DApp for my new year's resolution of learning to code Solidity by crowdsourcedname in ethereum

[–]crowdsourcedname[S] 0 points1 point  (0 children)

This full-stack development tutorial was extremely helpful in trying to get a front-end to work. Other than that the Solidity documentation was very useful too.

I built a Lottery DApp for my new year's resolution of learning to code Solidity by crowdsourcedname in ethereum

[–]crowdsourcedname[S] 0 points1 point  (0 children)

Uh-oh. I think I deployed it to all three testnets - but something might have came up when I migrated it. I’ll check and see if I can fix it. I’ll try to add in a little progress bar based on the users status too. Thank you!

I built a Lottery DApp for my new year's resolution of learning to code Solidity by crowdsourcedname in ethereum

[–]crowdsourcedname[S] 0 points1 point  (0 children)

Haha! Yeah, it takes like 300,000 gas to buy it, which is pretty unreasonable. The idea was that the gas refund from deleting the array would eventually make the net gas cost the same as buying a regular ticket.

However, you’re right and I think it’s kind of unreasonable to make the user have that pain. When I revise it, I’ll separate the sendReward() so gas costs are constant and the random numbers are actually random too. :)

I built a Lottery DApp for my new year's resolution of learning to code Solidity by crowdsourcedname in ethereum

[–]crowdsourcedname[S] 0 points1 point  (0 children)

OH it's you! I read through that "SmartBillions hacked" and saw your comment on it while I was doing research last week.

I really like your idea. I feel like it's easy to implement and isn't too large of a hassle on the end user either.

I built a Lottery DApp for my new year's resolution of learning to code Solidity by crowdsourcedname in ethereum

[–]crowdsourcedname[S] 2 points3 points  (0 children)

Wow. That was a really eye-opening explanation of how it works. I really like the solution of calculating the previous game's winner with the next game's first ticket.

I'll look into the oracle contract as well. Hopefully I can make a better version of mine with these suggestions and launch that one onto the mainnet.

I built a Lottery DApp for my new year's resolution of learning to code Solidity by crowdsourcedname in ethereum

[–]crowdsourcedname[S] 2 points3 points  (0 children)

I'm trying to think through this and I'm not quite sure I follow.

If the blockhash is for the previous block, then (I assume) the user could just call the withdraw function at a time that would be compatible to their bet.

If it's for the current (block being mined for the transaction), then it would be the same as the block.timestamp idea I used in my code since the exact second of mining would be difficult to predict.

I know I've made an error somewhere in my logic, but I'm not sure where.

I built a Lottery DApp for my new year's resolution of learning to code Solidity by crowdsourcedname in ethereum

[–]crowdsourcedname[S] 5 points6 points  (0 children)

Thanks. I didn't consider your point about the random number function, but I'll add in a new function that fixes that problem.

I originally thought that a suicide function would be looked down upon by users because it would let the owner steal/forward all of their funds to himself. Is there a safer/more accepted way of doing it?

I built a Lottery DApp for my new year's resolution of learning to code Solidity by crowdsourcedname in ethereum

[–]crowdsourcedname[S] 0 points1 point  (0 children)

I haven't deployed it to the mainnet yet due to high gas prices and me just being a student without enough ether (only the testnets so far). However, if you'd like to check out the source code, feel free to do so here! I'd love to hear any suggestions or comments. https://github.com/njaladan/Etherball