Updated 483 days ago

GuardRisk

Insuring volatility in your crypto assets from systematic and inflationary disruptions.

  • Crypto / Web3
  • Polygon
  • Flow
  • Chainlink
  • DeFi

GuardRisk

Inspiration

After suffering major losses after systemic failures in Terra Luna, I was determined to find a solution that would assist retail investors like myself from future losses as a result on systemic failures in the crypto ecosystem.

What I've built

This is an insurance application smart contract built on the Polygon and Flow blockchain using Solidity and Cadence. It allows users to insure risks associated with systemic risks like the collapse of a CEX/DEX, market disruptions not associated with the normal trading of assets. Investors stake their funds for a specified duration in order to cover liability and in return earn yield on the premiums paid by users. The application includes various features such as policy selection, stake deposit, rewards calculation, policy management, and claims processing.

Problem Statement

In the rapidly growing crypto ecosystem, there is a need for reliable insurance solutions to protect investors from potential losses due to market volatility and unforeseen circumstances. Traditional insurance systems are often slow, inefficient, and lack transparency. Additionally, existing crypto insurance platforms may have limitations, such as high costs, complex processes, and limited policy options.

Solution

The Insurance Application aims to address the above challenges by providing a decentralized insurance solution. By leveraging the benefits of blockchain technology, the application offers the following advantages:

  • Transparency: All insurance policies, stake deposits, rewards calculations, and claims processing are recorded on the public Polygon blockchain, providing transparency and auditability to policyholders.

  • Security: Smart contracts ensure the security of funds and automate policy management, eliminating the need for intermediaries and reducing the risk of fraud.

  • Efficiency: The application automates policy expiration, rewards calculation, and claims processing using Chainlink, streamlining the insurance lifecycle and reducing administrative overhead.

  • Flexibility: Users can select from multiple insurance policies with varying levels of coverage, allowing them to choose the one that best suits their needs and risk appetite.

  • Improved User Experience: The frontend interface provides an intuitive user experience, making it easy for users to interact with the application, manage their policies, and track their rewards and claims.

Architecture

The application consists of two main smart contracts:

Insurance Contract: Handles the insurance policies, including policy selection, expiration, and maximum loss protection percentages. Timebased Staking Contract: Manages the staking of funds for a specific duration and calculates rewards based on the insurance protocol performance. Test Token was deployed as the underlying insured asset for the demo.

How GuardRisk was built

-React

  • Vercel
  • Ethers
  • Chainlink
  • Solidity
  • Cadence
  • Chainlink functions starterkit

DEPLOYED CONTRACTS

** Automation: **

Functions:

Automation:

Usage

  • Access the frontend application through a web browser.
  • Navigate to the Policy Page and select the desired insurance policy.
  • Proceed to the Staking Page and stake the desired amount for a specified duration.
  • Monitor the policy details and rewards on the Dashboard.
  • Make payments on the Payment Page to reactivate an expired policy.
  • View and track claims on the Claims Page.
  • Manage policies by upgrading or canceling on the Policy Page.