#
SimplePolicyFacet
Inherits: Modifiers
Facet for working with Simple Policies
Simple Policy facet
#
Functions
#
paySimplePremium
Pay a premium of _amount
on simple policy
function paySimplePremium(bytes32 _policyId, uint256 _amount)
external
notLocked(msg.sig)
assertPrivilege(_policyId, LC.GROUP_PAY_SIMPLE_PREMIUM);
Parameters
#
paySimpleClaim
Pay a claim of _amount
for simple policy
function paySimpleClaim(bytes32 _claimId, bytes32 _policyId, bytes32 _insuredId, uint256 _amount)
external
notLocked(msg.sig)
assertPrivilege(LibObject._getParentFromAddress(msg.sender), LC.GROUP_PAY_SIMPLE_CLAIM);
Parameters
#
getSimplePolicyInfo
Get simple policy info
function getSimplePolicyInfo(bytes32 _policyId) external view returns (SimplePolicyInfo memory);
Parameters
Returns
#
getPolicyCommissionReceivers
Get the list of commission receivers
function getPolicyCommissionReceivers(bytes32 _id) external view returns (bytes32[] memory commissionReceivers);
Parameters
Returns
#
checkAndUpdateSimplePolicyState
Check and update simple policy state
function checkAndUpdateSimplePolicyState(bytes32 _policyId) external notLocked(msg.sig);
Parameters
#
cancelSimplePolicy
Cancel a simple policy
function cancelSimplePolicy(bytes32 _policyId)
external
assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_UNDERWRITERS);
Parameters
#
getSigningHash
Generate a simple policy hash for singing by the stakeholders
function getSigningHash(
uint256 _startDate,
uint256 _maturationDate,
bytes32 _asset,
uint256 _limit,
bytes32 _offchainDataHash
) external view returns (bytes32 signingHash_);
Parameters
Returns
#
calculatePremiumFees
Calculate the policy premium fees based on a buy amount.
function calculatePremiumFees(bytes32 _policyId, uint256 _premiumPaid)
external
view
returns (CalculatedFees memory cf);
Parameters
Returns