Skip to content

Latest commit

 

History

History
269 lines (234 loc) · 7.97 KB

ICoverReassurance.md

File metadata and controls

269 lines (234 loc) · 7.97 KB

ICoverReassurance.sol

View Source: contracts/interfaces/ICoverReassurance.sol

↗ Extends: IMember ↘ Derived Contracts: CoverReassurance

ICoverReassurance

Events

event ReassuranceAdded(bytes32 indexed coverKey, uint256  amount);
event WeightSet(bytes32 indexed coverKey, uint256  weight);

Functions

addReassurance

Adds reassurance to the specified cover contract

function addReassurance(bytes32 coverKey, address account, uint256 amount) external nonpayable

Arguments

Name Type Description
coverKey bytes32 Enter the cover key
account address
amount uint256 Enter the amount you would like to supply
Source Code
function addReassurance(
    bytes32 coverKey,
    address account,
    uint256 amount
  ) external;

setWeight

function setWeight(bytes32 coverKey, uint256 weight) external nonpayable

Arguments

Name Type Description
coverKey bytes32
weight uint256
Source Code
function setWeight(bytes32 coverKey, uint256 weight) external;

capitalizePool

function capitalizePool(bytes32 coverKey, uint256 incidentDate) external nonpayable

Arguments

Name Type Description
coverKey bytes32
incidentDate uint256
Source Code
function capitalizePool(bytes32 coverKey, uint256 incidentDate) external;

getReassurance

Gets the reassurance amount of the specified cover contract

function getReassurance(bytes32 coverKey) external view
returns(uint256)

Arguments

Name Type Description
coverKey bytes32 Enter the cover key
Source Code
function getReassurance(bytes32 coverKey) external view returns (uint256);

Contracts