@insuredao/pool-contracts
v1.0.2
Published
Core smart contracts of InsureDAO
Downloads
7
Readme
InsureDAO pool contracts
Smart contracts used in InsureDAO pools.
Overview
InsureDAO is the composable and open insurance protocol in the Ethereum ecosystem which enables any protocol/anyone to create, provide, get insured from potential risks in crypto.
This repository contains pool related contracts. For goveranance related contracts, please refer to "dao-contracts" pools.
Contracts
interfaces
: Subdirectories for interfaceslibraries
: Subdirectories for useful librariesmocks
: Subdirectories for mocks (for testing purposes)CDSTemplate
: CDS template contracts, which compensate index in case of an index's insolvencyIndexTemplate
: Index template contracts, which leverage and deploy credit(internal token) to underlying individual poolsPoolTemplate
: Pool template contracts, where people trade risk and premiumVault
: Manages deposited collateral and accrued premium to yield additional earningsFactory
: Factory contract to deploy new pools/indices/cds at lowest gas cost and control delpoying addressesParameters
: Store market parameters to each markets. the DAO control address can operate upgradesPremiumModel
: Stores logic of premium calculationRegistry
: Registeres InsureDAO's official pools.
Testing and Development
Workflow
- New InsureDAO pools are built from the Factory contract template at
Factory
- Once deployed, the contracts for a pool are added to
Registry
Running the Tests
The test suite contains common tests for all types of pools. To run the entire suite:
yarn & yarn test
Audits and Security
InsureDAO smart contracts have been audited by oo. These audit reports are made available on the audits
.
License
(c) InsureDAO, 2021 - All rights reserved.