Skip to content

Latest commit

 

History

History
278 lines (243 loc) · 8.45 KB

ICoverReassurance.md

File metadata and controls

278 lines (243 loc) · 8.45 KB

ICoverReassurance.sol

View Source: contracts/interfaces/ICoverReassurance.sol

↗ Extends: IMember ↘ Derived Contracts: CoverReassurance

ICoverReassurance

Events

event ReassuranceAdded(bytes32 indexed coverKey, address indexed onBehalfOf, uint256  amount);
event WeightSet(bytes32 indexed coverKey, uint256  weight);
event PoolCapitalized(bytes32 indexed coverKey, bytes32 indexed productKey, uint256 indexed incidentDate, uint256  amount);

Functions

addReassurance

Adds reassurance to the specified cover contract

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

Arguments

Name Type Description
coverKey bytes32 Enter the cover key
onBehalfOf address Enter the account on behalf of which you are adding reassurance.
amount uint256 Enter the amount you would like to supply
Source Code
function addReassurance(
    bytes32 coverKey,
    address onBehalfOf,
    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, bytes32 productKey, uint256 incidentDate) external nonpayable

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
incidentDate uint256
Source Code
function capitalizePool(
    bytes32 coverKey,
    bytes32 productKey,
    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