Skip to content

A decentralized weather betting Dapp that makes forecasting fun and rewarding. By Tsinghua University Blockchain Association (THUBA) for ETHGlobal Sydney 2024.

Notifications You must be signed in to change notification settings

trevor-trinh/weather-better

Repository files navigation

WeatherBetter 🌤️🌧️

Overview

WeatherBetter is a decentralized weather betting Dapp that revolutionizes how users engage with weather forecasts. With our platform, users can bet on the weather of a specific place and date, turning everyday weather predictions into exciting opportunities for profit or pleasant surprises.

Demo 🎬

WeatherBetter.demo.-.eth.global.sydney.submission.mp4

How it Works 🤔

Imagine you're planning a trip to Sydney in a week, and you're worried about rain ruining your adventure. With WeatherBetter, you can place a bet, like 100 USDC, on rainy weather for that day. If it doesn't rain, you lose your bet but gain a sunny day for your trip. However, if the weather doesn't cooperate, you could win some money to compensate for your ruined plans!

Key Technologies 🛠️

1. Chainlink's CCIP Technology and Weather Data Feeds

Chainlink's CCIP technology enables a cross-chain token bridge between the Base chain and Ethereum, enhancing the user experience. Weather data feeds ensure accurate and reliable weather information, triggering automated asset allocations among winners.

2. Base Sepolia and Avalanche Fuji

Base Sepolia and Avalanche Fuji provide the blockchain infrastructure to record on-chain transactions and execute smart contracts securely and efficiently, safeguarding users' funds.

3. Nouns Vibe and Art

Partnering with NounsDAO brings a unique brand and vibe to WeatherBetter, aligning perfectly with our fun and quirky product style, making it more appealing to users.

4. Worldcoin Proof-of-Humanity

Our project is committed to combating bots and sybil attacks, ensuring that our platform delivers genuine value to real users. Integration with Worldcoin's proof-of-humanity mechanism enhances security and authenticity.

5. Unlimit Wallet

Seamless integration with Unlimit's on/off ramps ensures accessibility for both web2 and web3 users, making WeatherBetter widely accessible and user-friendly.

Disclaimer ⚠️

WeatherBetter is for entertainment purposes only. Please gamble responsibly and be aware of the risks involved. We do not guarantee the accuracy of weather predictions or the outcome of bets.

Contributors 🙋‍♂️

Getting Started 🚀

1. Quick Start Guide

  • Visit our Website
    Ready to start betting on the weather? Visit our website (https://weather-better.vercel.app/bet) and connect your wallet to get started. Join our community to stay updated on new features, events, and more!

2. Self-Deployment Instructions

  1. Install Dependencies
    Use Bun to install the required packages by running:

    bun install
  2. Set Up Environment Variables
    Copy the environment variables from .env.example into a new file named .env.local, and adjust them according to your setup.

  3. Run the Development Server
    Start the server using:

    bun dev
  4. Access the Application
    Open http://localhost:3000 in your browser to view the result.

Note:
The CCIP contract code was modified based on the official demo. Replace the original files with those in the contract folder for accurate deployment. For specific deployment parameters, refer to the Chainlink documentation.

About

A decentralized weather betting Dapp that makes forecasting fun and rewarding. By Tsinghua University Blockchain Association (THUBA) for ETHGlobal Sydney 2024.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published