# bgrosso.eth Betting Dapp

By [bgrosso.eth 🌐](https://paragraph.com/@bgrosso) · 2022-11-15

---

**Github Code:**

[https://github.com/modelB/r2w3-w8-betting-dapp-optimism/blob/master/20220615-random/contracts/Casino.sol](https://github.com/modelB/r2w3-w8-betting-dapp-optimism/blob/master/20220615-random/contracts/Casino.sol)

**Deployed Contract:**

[https://optimistic.etherscan.io/address/0x967c2ed630525d1b0d4b51f77df7e4d98cd5006d](https://optimistic.etherscan.io/address/0x967c2ed630525d1b0d4b51f77df7e4d98cd5006d)

**Wallet Address:** bgrosso.eth / 0xC0e90583cc27191Ab17407Ac3595E1509ffDA69F

**High Level Implementation:** Bet must be proposed and accepted with hashes by both parties which starts a 30 min timer. Both parties must then submit unhashed bets within that window. Then either party can evaluate the bet and the correct person will get paid. If either person does not submit bet within 30 min window they lose by default.

**Who are you, and what is your software development background?**

I am a frontend engineer working in web2 vigorously learning web3!

**Why did you want to complete this lesson?**

I am trying to knock out all of R2W3 before Alchemy University rolls out so I can focus on that when it does!

**When did you complete the project?**

11/15/22

**What technologies did you use?**

Optimism mainnet, Remix for local testing, VS Code for actual development, ethers and particularly its hashing keccak256 utility, hardcore SELF-WRITTEN solidity with no dependencies! Also etherscan for verifying deployment and txns.

**What did you enjoy about the tutorial?**

I enjoyed that there was less hand-holding with this tutorial, and while the video is short, the challenge is easy to understand and my skills are getting to the point that while more was asked of me, I felt confident completing it.

**How do you think you can use this technology to build useful applications in the future? What are some specific example applications?**

I think there is a lot of edge case handling in this week that applies to all smart contracts. You need to assume users will try to exploit your contract and really tighten things up with lots of require statements for every possible scenario. I know that on chain betting apps already exist, there is one for combat sports I’ve seen ads for.

**Who would you recommend this project to?**

Anyone learning web3 dev.

---

*Originally published on [bgrosso.eth 🌐](https://paragraph.com/@bgrosso/bgrosso-eth-betting-dapp)*
