Skip to content

Latest commit

 

History

History
272 lines (237 loc) · 8.19 KB

IPolicyAdmin.md

File metadata and controls

272 lines (237 loc) · 8.19 KB

IPolicyAdmin.sol

View Source: contracts/interfaces/IPolicyAdmin.sol

↗ Extends: IMember ↘ Derived Contracts: PolicyAdmin

IPolicyAdmin

Events

event CoverPolicyRateSet(bytes32 indexed coverKey, uint256  floor, uint256  ceiling);
event CoverageLagSet(bytes32 indexed coverKey, uint256  window);

Functions

setPolicyRatesByKey

Sets policy rates for the given cover key. This feature is only accessible by owner or protocol owner.

function setPolicyRatesByKey(bytes32 coverKey, uint256 floor, uint256 ceiling) external nonpayable

Arguments

Name Type Description
coverKey bytes32
floor uint256 The lowest cover fee rate for this cover
ceiling uint256 The highest cover fee rate for this cover
Source Code
function setPolicyRatesByKey(
    bytes32 coverKey,
    uint256 floor,
    uint256 ceiling
  ) external;

getPolicyRates

Gets the cover policy rates for the given cover key

function getPolicyRates(bytes32 coverKey) external view
returns(floor uint256, ceiling uint256)

Arguments

Name Type Description
coverKey bytes32
Source Code
function getPolicyRates(bytes32 coverKey) external view returns (uint256 floor, uint256 ceiling);

setCoverageLag

function setCoverageLag(bytes32 coverKey, uint256 window) external nonpayable

Arguments

Name Type Description
coverKey bytes32
window uint256
Source Code
function setCoverageLag(bytes32 coverKey, uint256 window) external;

getCoverageLag

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

Arguments

Name Type Description
coverKey bytes32
Source Code
function getCoverageLag(bytes32 coverKey) external view returns (uint256);

Contracts