Inspiration

The traditional insurance system faces several challenges, including limited liquidity providers (banks and insurance sellers), cumbersome claiming processes, and low flexibility in benefit conditions. Azurance addresses these limitations by offering an open, instant-claim, and highly flexible system for insurance. Liquidity can come from anyone seeking investment. The insurance conditions cover many cases, both on-chain and off-chain data, thanks to Chainlink. Once an insurance contract is eligible for a claim, buyers can immediately claim their benefits without needing further documents and proofs. This platform revolutionizes the insurance industry, benefiting users in both risk management and investment gains. The system simplifies launching global-scale insurance programs from day one.

What it does

The platform enables anyone to create an insurance contract with customizable conditions. Once deployed, anyone can provide liquidity to the contract, hoping to earn a yield upon maturity. Insurance can be bought by those looking to hedge against various conditions, such as global pandemics, price crashes, or DeFi platform hacking. The platform tracks insurance buying and selling through ERC-20 tokens, Buyer tokens, and Seller tokens. This allows users to swap their insurance statuses on secondary markets, adjusting their risk and return profiles. Both buyers and sellers engage with an insurance contract by depositing their assets. There are three possible outcomes for a contract:

  1. Claimable - if the predefined risk condition occurs during the contract period, buyers can claim their benefits.
  2. Matured - if the contract expires without any risk event, sellers can claim their benefits.
  3. Terminated - in case of issues with the contract, everyone can reclaim their deposit.

How we built it

  1. The web frontend is developed using Next.JS, ethers.js, WAGMI, and Graph client.
  2. The smart contract is written in Solidity using Foundry, with openzeppelin for standard contracts.
  3. Chainlink contracts, including Data Feed, Functions, and CCIP, are integrated. The Graph is utilized to index insurance contracts, eliminating the need for backend services as it handles complex queries.

Challenges we ran into

  1. As beginners, Chainlink's products were initially complex, leading to numerous errors. Eventually, we managed to get them working.
  2. Developing a mathematical model for risk and return that is equitable for all stakeholders was challenging but eventually accomplished.
  3. Integrating Polygon ID was difficult for us to execute.
  4. Debugging the subgraph was time-consuming due to its complexity. However, it is essential for user-friendly dapps.

Accomplishments that we're proud of

  1. We successfully integrated three Chainlink services and plan to integrate more in the future.
  2. We developed a fair mathematical model for justifying the risk and return of all stakeholders.

What we learned

  1. We gained significant knowledge in using Chainlink, Polygon ID, and The Graph.
  2. We discovered the enjoyable aspects of mathematics, especially in DeFi products.
  3. We improved our team collaboration and optimization skills.

What's next for Azurance

  1. We aim to ensure the security of the developed contract before its mainnet launch and seek smart contract audit support.
  2. Enhancements in user experience are planned.
  3. We intend to secure grants and prepare for mainnet launch when ready.

Built With

  • ccip
  • chainlink
  • datafeed
  • foundry
  • functions
  • github
  • graphql
  • next
  • solidity
  • subgraph
  • vercel
Share this project:

Updates