Contact jolow#2573 on Discord for more information.

Introduction

Axinsure is a new DeFi primitive that enables the easy creation of peer-to-peer insurance protocols.

With Axinsure, anybody can use insurance products from any chain, without having to worry about the underlying technology.

Users can also become insurers, creating automatic, cross-chain disbursements based on changes that happened in the real world.

View our pitch at https://youtu.be/Q4LUBO6SfsA

Potential Use Cases

  1. Weather Insurance: Farmers are able to buy insurance for their crops based on weather conditions.
  2. Peer-to-peer bets: Users can bet on the outcome of an event, and the winner is automatically paid out. e.g. Balaji BTC to 1 million bet.

How It Works

The frontend is built using Thirdweb and React.

The smart contracts are written in Solidity and deployed on Polygon and Avalanche.

Axelar was used to enable cross-chain pooling of liquidity and cross-chain disbursements.

There are 3 main contracts:

  1. AxinsureOracle: This contract is responsible for fetching weather data . It is deployed on our host chain, Polygon.
  2. AxinsureCore: This contract is responsible for creating insurance policies, and for querying the oracle to issue payouts. It is deployed on our host chain, Polygon.
  3. AxinsureCollector: This contract is responsible for collecting funds from users and disbursing funds to the winners. It can be deployed on any chain.

Experiences with Axelar

  1. Axelar was easy to integrate into the solidity code. A lot of abstraction has evidently been done to reduce the number of lines of code that has to be used.
  2. While the Axelar example code was very helpful, it was difficult to adapt it to use within our project as there was no clean template which we could easily integrate from. Instead, our team had to cherry pick different aspects of the code that were relevant to our use case.
  3. The aUSDC faucet on Discord was difficult to use as it was rate limited to every 12 hours, and only issued tokens on one chain. Additionally, aUSDC on the different chains were not verified, meaning that we were required to manually craft transactions to call approvals on the aUSDC contract. Transaction: https://testnet.axelarscan.io/gmp/0xd6f4be3674975626415f2a8fb66fd3231c745ab36dd3679237106512840418bb

Contracts and Deployment

The Contracts are deployed at

Mumbai

Oracle: https://mumbai.polygonscan.com/address/0xc20AB0E840B400B34e0Bd8C00E2898c73047c085#code

Core: https://mumbai.polygonscan.com/address/0x9B2DE210Cf202C6F292E599054F9Bf911CE638A8#code

Collector: https://mumbai.polygonscan.com/address/0x9C7E8199271DBC8eb46A1d6CE782760A6aE08190#code

AVAX Fuji

Collector: https://testnet.snowtrace.io/address/0x9B2DE210Cf202C6F292E599054F9Bf911CE638A8#code

Built With

Share this project:

Updates