Ensuro Extensions
This package contains several extension / utility contracts to be used with the Ensuro Protocol.
Try running some of the following tasks:
npx hardhat help
npx hardhat test
GAS_REPORT=true npx hardhat test
CashFlowLender
The objective of this contract is to support the operation of some partners that receive the money of the premiums several weeks after the policy was sold. This contract lends the money to pay the premiums while keeping the ownership of the policies as collateral. When there's a payout, it retains the funds up to cover the debt and releases the remaining to a previously configured address.
QuadrataWhitelist
This is an implementation of LPManualWhitelist with an additional endpoint that verifies a Quadrata passport before whitelisting a new provider.
The supported roles are:
LP_WHITELIST_ROLE
: Can whitelist providers bypassing quadrata's checkQUADRATA_WHITELIST_ROLE
: Can whitelist providers that have a quadrata passport with the required attributesLP_WHITELIST_ADMIN_ROLE
: Can change the contract settings and perform upgradesDEFAULT_ADMIN_ROLE
: Can grant roles to addresses
Checkout Quadrata's docs for the available attributes.
Checkout the method _validateRequiredAttribute
for attributes with special validations.