@insuredao/pool-contracts

1.0.2 • Public • Published

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 interfaces
  • libraries: Subdirectories for useful libraries
  • mocks: Subdirectories for mocks (for testing purposes)
  • CDSTemplate: CDS template contracts, which compensate index in case of an index's insolvency
  • IndexTemplate: Index template contracts, which leverage and deploy credit(internal token) to underlying individual pools
  • PoolTemplate: Pool template contracts, where people trade risk and premium
  • Vault: Manages deposited collateral and accrued premium to yield additional earnings
  • Factory: Factory contract to deploy new pools/indices/cds at lowest gas cost and control delpoying addresses
  • Parameters: Store market parameters to each markets. the DAO control address can operate upgrades
  • PremiumModel: Stores logic of premium calculation
  • Registry: 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @insuredao/pool-contracts

Weekly Downloads

0

Version

1.0.2

License

GPL-3.0

Unpacked Size

20.6 MB

Total Files

127

Last publish

Collaborators

  • shunoikawa1112