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

Latest commit

 

History

History
227 lines (197 loc) · 6.76 KB

IPolicyAdmin.md

File metadata and controls

227 lines (197 loc) · 6.76 KB

IPolicyAdmin.sol

View Source: contracts/interfaces/IPolicyAdmin.sol

↗ Extends: IMember ↘ Derived Contracts: PolicyAdmin

IPolicyAdmin

Events

event PolicyRateSet(uint256  floor, uint256  ceiling);
event CoverPolicyRateSet(bytes32  key, uint256  floor, uint256  ceiling);

Functions

setPolicyRates

Sets policy rates. This feature is only accessible by owner or protocol owner.

function setPolicyRates(uint256 floor, uint256 ceiling) external nonpayable

Arguments

Name Type Description
floor uint256 The lowest cover fee rate fallback
ceiling uint256 The highest cover fee rate fallback
Source Code
function setPolicyRates(uint256 floor, uint256 ceiling) external;

setPolicyRatesByKey

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

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

Arguments

Name Type Description
key 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 key,
    uint256 floor,
    uint256 ceiling
  ) external;

getPolicyRates

Gets the cover policy rates for the given cover key

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

Arguments

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

Contracts