This repository contains all frontend code written for project SafeZen as part of the HackMoney2022 Hackathon organised by ETHGlobal. This application where the users interacts with to purchase, claim insurance and claim yield from their insurance policies.
- Run
npm install
to install the necessary packages - Run
cp .env.template .env.development
and fill in the required environmant variables - Run
npm run dev
- Open http://localhost:3000
This application will be using Superfluid to flow DAIx from your wallet to the SafeZen contract. This application will be working on the assumption that you are already in possession of DAIx. If you do not have DAIx in your wallet, head over to SuperFluid Dashboard and get some free DAIx tokens to use our application.
NEXT_PUBLIC_INFURA_ID - Infura project id NEXT_PUBLIC_MAINNET - True if the contract is deployed on Polygon Mainnet / False if the contract is deployed on Polygon Mumbai Testnet NEXT_PUBLIC_SAFEZEN_CA - SafeZen Contract's Address NEXT_PUBLIC_GOVERNANCE_CA - Governance Contract 'sAddress NEXT_PUBLIC_STAKING_CA - Staking Contract's Address