FlareInsure is a decentralized weather insurance platform built on the Flare Network, leveraging blockchain technology and real-world weather data to provide transparent, automated insurance policies against rainfall-related risks. This repository consists of the web app frontend consuming the smart contracts deployed on the Flare Network. Backend logic repo: https://github.com/ssocolow/flare_insure
-
Policy Creation
- Insurers deposit collateral (coverage amount)
- Set policy parameters (premium, coverage, threshold)
- Policy becomes available in the marketplace
-
Policy Purchase
- Users browse available policies
- Purchase by paying the premium
- Premium is transferred to the insurer
-
Policy Settlement
- At maturity, smart contract checks rainfall data
- If rainfall is below threshold: Policyholder receives payout
- If rainfall is above threshold: Insurer receives collateral back
-
Data Verification
- Rainfall data is fetched from Flare Data Connector
- Multiple validators ensure data accuracy
- Completely decentralized and tamper-proof
-
WeatherInsuranceMarketplace.sol
- Main contract handling policy lifecycle
- Manages policy creation, purchase, and settlement
- Interfaces with Weather Oracle
-
Weather Oracle
- Interfaces with Flare Data Connector
- Provides verified rainfall data
- Used for policy settlement decisions
-
Dashboard
- Real-time weather data
- Policy statistics
- Financial metrics
-
Policy Marketplace
- List of available policies
- Policy details and status
- Purchase and claim interfaces
- Node.js v18+
- Git
- Yarn or npm
- Clone the repository:
git clone https://github.com/Mushrimpy/blockinsure_flare.git
cd blockinsure_flare- Install dependencies:
yarn install- Start the development server:
yarn startThis project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to Phillip and the rest of the Flare team for helping us get set up and guiding our build! Also thanks to Adam Spiers from Toucan for the invaluable mentorship he provided.
For questions and support, please open an issue or contact the team at contact@flareinsure.com