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

Latest commit

 

History

History
224 lines (194 loc) · 6.83 KB

ICoverProvision.md

File metadata and controls

224 lines (194 loc) · 6.83 KB

ICoverProvision.sol

View Source: contracts/interfaces/ICoverProvision.sol

↗ Extends: IMember ↘ Derived Contracts: CoverProvision

ICoverProvision

Events

event ProvisionIncreased(bytes32  key, uint256  previous, uint256  current);
event ProvisionDecreased(bytes32  key, uint256  previous, uint256  current);

Functions

increaseProvision

Increases NPM provision for the given cover key. This feature is accessible only to the contract owner (governance).

function increaseProvision(bytes32 key, uint256 amount) external nonpayable

Arguments

Name Type Description
key bytes32 Provide the cover key you wish to increase the provision of
amount uint256 Specify the amount of NPM tokens you would like to add
Source Code
function increaseProvision(bytes32 key, uint256 amount) external;

decreaseProvision

Decreases NPM provision for the given cover key This feature is accessible only to the contract owner (governance).

function decreaseProvision(bytes32 key, uint256 amount) external nonpayable

Arguments

Name Type Description
key bytes32 Provide the cover key you wish to decrease the provision from
amount uint256 Specify the amount of NPM tokens you would like to decrease
Source Code
function decreaseProvision(bytes32 key, uint256 amount) external;

getProvision

Gets the NPM provision amount for the given cover key

function getProvision(bytes32 key) external view
returns(uint256)

Arguments

Name Type Description
key bytes32 Enter the cover key to get the provision
Source Code
function getProvision(bytes32 key) external view returns (uint256);

Contracts