Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Latest commit

 

History

History
179 lines (165 loc) · 5.95 KB

Vault.md

File metadata and controls

179 lines (165 loc) · 5.95 KB

Cover Vault for Liquidity (Vault.sol)

View Source: contracts/core/liquidity/Vault.sol

↗ Extends: WithFlashLoan

Vault

Liquidity providers can earn fees by adding stablecoin liquidity to any cover contract. The cover pool is collectively owned by liquidity providers where fees automatically get accumulated and compounded.

Fees

  • Cover fees paid in stablecoin get added to the liquidity pool.
  • The protocol supplies a small portion of idle assets to lending protocols (v2).
  • Flash loan interest also gets added back to the pool.
  • To protect liquidity providers from cover incidents, they can redeem up to 25% of the cover payouts through NPM provision.
  • To protect liquidity providers from cover incidents, they can redeem up to 25% of the cover payouts through reassurance token allocation.

Functions

function (IStore store, bytes32 coverKey, IERC20 liquidityToken) public nonpayable VaultBase 

Arguments

Name Type Description
store IStore
coverKey bytes32
liquidityToken IERC20
Source Code
constructor(
    IStore store,
    bytes32 coverKey,
    IERC20 liquidityToken
  ) VaultBase(store, coverKey, liquidityToken) {}

Contracts