CloudCover is a decentralized platform that allows users to buy and fund flight insurance policies, leveraging the power of Ethereum smart contracts and decentralized oracles. With CloudCover, travelers can secure immediate, trustless insurance for their flights, while investors can earn premiums by funding policies and betting on flight outcomes in a gamified insurance market.
- About
- How It Works
- Features
- Getting Started
- Smart Contract Details
- Technologies Used
- Contributing
- License
CloudCover is revolutionizing the traditional flight insurance model with transparency, speed, and decentralized technology. By leveraging Ethereum smart contracts, decentralized oracles, and stablecoins, CloudCover ensures that travelers get paid instantly when their flight is canceled, without the hassle of traditional insurance companies.
Travelers request flight insurance by locking in a small premium. Investors, in turn, fund these policies by locking up a coverage amount, earning the premium if the flight lands as scheduled. If a flight is canceled, the traveler receives an automatic payout.
- Request Insurance: Enter your flight details, coverage amount, and pay a premium.
- Get Covered: If an investor funds your policy, you're covered. If the flight gets canceled, you'll receive an instant payout.
- Automated Payout: If the flight is canceled, you can claim automatically via smart contracts.
- Browse Policies: Browse available insurance requests and choose which flights you want to insure.
- Fund Insurance: Fund the coverage for flights you believe will land on time and earn premiums.
- Earn Returns: If the flight lands as scheduled, the premium is paid to you as profit. If it's canceled, the traveler receives the payout.
- Peer-to-Peer Flight Insurance: Connect travelers seeking flight insurance with investors willing to fund policies.
- Smart Contract-Powered: Automated payouts, no middlemen, no delays.
- Real-Time Flight Tracking: Decentralized oracles track flight statuses in real-time to trigger payouts instantly.
- Gamified Investment: Investors can "bet" on flight outcomes, earning premiums by taking on flight insurance risks.
- Transparency and Security: All transactions and policy data are visible and secure on the Ethereum blockchain.
To run CloudCover locally or participate in the platform, you need:
- Node.js
- MetaMask or other Web3-enabled browser extension
- An Ethereum testnet or mainnet connection (via Infura, Alchemy, or other providers)
- A wallet funded with Sepolia ETH and Sepolia USDC (https://faucet.circle.com/)
Our contract is live and verified to view/interact with on Sepolia! 0x415B56a8B3B80b914Bb790ACFF979e28b12e1955
-
Clone the repository:
git clone https://github.com/taylorferran/CloudCover.git
-
Install dependencies:
cd front-end/cloudcover pnpm install
-
Run the frontend:
pnpm dev
This contract handles the following:
- Creating Insurance Requests: Travelers can create an insurance request with flight details, coverage amount, and premium.
- Funding Insurance: Investors fund insurance policies and lock up the coverage amount.
- Oracle Integration: Decentralized oracles track real-time flight statuses to determine payouts.
- Automatic Payouts: If a flight is canceled, the traveler's payment is sorted automatically, while the investor earns the premium if the flight lands as scheduled.
CloudCover uses decentralized oracles (e.g., Chainlink/Blocksense) to track real-time flight status. The flight status is fed into the smart contract, which triggers automatic payouts based on the oracle's data.
All transactions are done using USDC to provide price stability. The smart contract interacts with the ERC-20 USDC token standard for premiums, coverage, and payouts.
- Solidity: Smart contract development on Ethereum.
- React: Frontend framework for building the CloudCover user interface.
- Ethers.js: To interact with the Ethereum blockchain from the frontend.
- Remix: Ethereum development environment to write and deploy the smart contract.
- Chainlink/Blocksense: Decentralized oracles for real-time flight data.
This project is licensed under the MIT License - see the LICENSE file for details.
CloudCover - Decentralizing flight insurance for a transparent, automated, and gamified experience.
This README provides a detailed overview of CloudCover's vision, how the system operates, and the technical requirements for developers looking to contribute or deploy the platform locally.