About
Here is a detailed project description for "Flysure," written in English, specifically tailored to the hackathon judging criteria you provided.
Project Name: Flysure
1. The Problem: Insurance is Slow, Frustration is Fast In travel, flight delays are inevitable. But getting compensated for them is a painful, bureaucratic process. The traditional insurance model is broken:
It requires passengers to manually file a claim, often with complex forms.
It involves a slow, manual approval process managed by centralized claims adjusters.
It relies on slow legacy payment rails (ACH, bank transfers), meaning compensation can take weeks or even months to arrive.
This creates a massive disconnect. The passenger's "pain point" (being stuck at an airport) happens now, but the financial relief arrives far too late to be useful, making it a poor user experience. This is a classic, real-world payments problem: a fundamental mismatch between the time of the insured event and the time of settlement.
2. The Solution: Flysure – Instant Parametric Insurance Flysure is a decentralized, parametric insurance platform built on the blockchain, designed to solve this problem using PYUSD.
"Parametric" insurance is a simple, non-negotiable, code-based contract: "If Event X happens, automatically pay Amount Y."
We remove the ambiguity, the claims adjusters, and the manual approvals. The insurance policy is the smart contract. Our first product focuses on flight delays.
3. The Core User Experience (How it Works) The power of Flysure is its simplicity.
Buy Policy (with PYUSD): A traveler connects their wallet to our dApp. They select their flight (e.g., "IST to BER"). They are offered a simple policy: "Pay a 10 PYUSD premium for a 100 PYUSD payout if your flight is delayed > 2 hours." The user approves the PYUSD spend and calls createPolicy, which transfers the 10 PYUSD premium into the smart contract's vault.
The Event (Flight Delay): The user's flight is delayed by 2 hours and 30 minutes.
The "Magic" (Instant Payout): A trusted, independent aviation data oracle (like FlightStats or IATA, as outlined in our architecture ) confirms the delay. This on-chain data automatically triggers our triggerPayout function. The smart contract verifies the delay meets the policy threshold (2.5 hours > 2 hours).
Result (PYUSD in Wallet): The smart contract instantly and programmatically executes the payout, transferring 100 PYUSD directly to the traveler's wallet.
The passenger receives their compensation while they are still at the airport. They can immediately use this PYUSD to buy lounge access, book a hotel, or buy a meal, transforming a negative experience into a positive one in real-time. No forms, no waiting, no phone calls.
4. Why PYUSD? (The Transformative Use Case) Flysure is a direct demonstration of PYUSD's power to create new economic opportunities and revolutionize commerce.
Solves a Real-World Payment Challenge: We are disrupting the slow, high-friction, and opaque insurance claims industry. We replace legacy banking rails with PYUSD for instant, 24/7, programmatic settlement. This directly addresses the "Payments Applicability" criterion.
The Ultimate PYUSD User Experience (UX): The "magic moment" of our UX is the speed of settlement. Using a volatile asset for this would be a terrible user experience; a user might receive $95 or $105, not the $100 they were promised. Using PYUSD means the user receives a stable, reliable, and immediately spendable digital dollar. The value promised is the value received, which builds trust and delivers an unparalleled UX.
New Economic Opportunity: This model unlocks a new market for micro-insurance policies that were previously not economically viable due to the high administrative overhead of traditional claims processing.
5. Technical Architecture (Hackathon MVP) For this hackathon, we built the core end-to-end system:
Smart Contract (Policy.sol): A Solidity contract deployed on the Sepolia testnet.
It is Ownable and integrates OpenZeppelin's IERC20 interface.
constructor(pyusdAddress): Sets the official PYUSD token address.
createPolicy(...): Receives the premium from the user via pyusdToken.transferFrom(), locking it in the contract.
triggerPayout(...): A secured function callable only by our authorized oracle address. It verifies the delay, updates the policy status to PAID, and executes the pyusdToken.transfer() of the payout amount to the policyholder.
Oracle Mechanism: For the demo, we built an "Admin Panel" (admin.tsx). This page simulates the trusted oracle, allowing us to manually trigger the triggerPayout function for a specific policy ID. This allows us to prove the complete, end-to-end functionality for the demo video.
Frontend (Next.js dApp):
A clean UI built with Next.js, TypeScript, and wagmi/RainbowKit.
Users can connect their wallet, see the PYUSD-denominated premium, and buy a policy. This flow correctly handles the two-step approve and createPolicy transactions.
A "My Policies" dashboard where the user can see their ACTIVE policies and watch their status change to PAID in real-time after the oracle triggers the payout.
6. Vision & Business Plan (Scalability)
This project is more than a hackathon submission; it is a viable business model.
Business Model: A sustainable business can be built by charging a small, transparent, programmatic fee (e.g., 2-5%) from each premium sold. This fee is automatically routed to the treasury, fully auditable on-chain.
Scalability: The "if-then-pay" logic is a powerful primitive. We started with flight delays, but this architecture can be scaled to:
Baggage Loss Insurance
Event Cancellation Insurance (concerts, conferences)
Parametric Weather Insurance (e.g., for farmers or outdoor venues)
Flysure demonstrates a powerful and scalable real-world use case for PYUSD, setting a new benchmark for how digital payments can transform an entire industry from a slow, manual process into one that is instant, transparent, and programmatic.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






