Giter Site home page Giter Site logo

test-insure's Introduction

InsureDAO contest details

Contest Scope

Representatives from InsureDAO will be available in the Code Arena Discord to answer any questions during the contest period. The focus for the contest is to try and find any logic errors or ways to drain funds from the protocol in a way that is advantageous for an attacker at the expense of users with funds invested in the protocol. Wardens should assume that governance variables are set sensibly (unless they can find a way to change the value of a governance variable, and not counting social engineering approaches for this).

Contract Overview

Contract Name Overview Line of Code
PoolTemplate.sol Insurance Market for arbitrary protocol.
aka.Single Pool
625
IndexTemplate.sol Aggragate multiple Single pools, and leverage the funds.
aka.Index Pool
406
CDSTemplate.sol Reserve pool in case index's leverage was too much and not able to payout for insurance
aka.CDS Pool
214
Factory.sol Contract factory for Templates above 170
Vault.sol All assets are stored here. 306
Parameters.sol This manages parameters for pools 266
Registry.sol Record pools address 82
InsureDAOERC20.sol LP token of the Templates 168
Ownership.sol Ownership management 44
BondingPremium.sol Insurance Premium calculator 164

Areas of concern for Wardens

Please focus more on the relationship between Single Pool, Index, and Vault, because there is complex calculation related to leverage. Also, we put more value for gas optimization of this area.

System Overview

TLDR
InsureDAO is an open insurance protocol where users can create, buy, and sell insurance of any defi protocols. Insurance buyers pay a premium to an insurance market to get insured by potential incidents, while sellers are able to earn a premium by underwrite their funds.

Market Overview

Documents

There are three documentations with different level of details.

  1. Landing Page: good to understand what InsureDAO is.
  2. General Document: InsureDAO functions
  3. Dev Document: code specification

Feel free to ask any question on the Code4rena InsureDAO channel!

Prior Audit Reports

setup

yarn

then, create .key and .infuraKey files.

In .key file, input your private key of your address for test In .infuraKey, input your infura API key

npx hardhat test
npx hardhat coverage

test-insure's People

Contributors

nateostro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.