CoverCompared
  • INTRODUCTION
    • About Us
      • What is CoverCompared?
      • Our Products
  • CoverCompared Offerings
    • CoverCompared Services
    • How is CoverCompared different from other insurance platforms?
      • Cryptocurrency Hacks - a primer
    • What is DeFi insurance?
    • What problems are CoverCompared trying to solve?
  • COVERCOMPARED PLATFORM
    • Ecosystem Overview
    • Risk Management
    • Partnerships
  • COVERCOMPARED TOKENOMICS
    • What is $CVR
    • CVR Use Cases
    • CVR Tokenomics
  • CoverCompared dAPP
    • How to take part in our Testnet & Bugbounty programme
    • How To
      • Buy a Smart Contract Cover
      • Buy Device Insurance
      • Buy MSO Products
      • Check bought products
      • Get test $CVR tokens
    • DeFi Covers
      • IsurAce
      • Nexus Mutual
      • Exchange Agent
    • Contemporary Covers
      • P4L
      • MSO
      • Exchange Agent
    • Contract Addresses
  • resources
    • CVR - FAQ
    • FAQ
Powered by GitBook
On this page
  • By Cover By ETH
  • By Cover By Token

Was this helpful?

  1. CoverCompared dAPP
  2. DeFi Covers

IsurAce

By Cover By ETH

To buy insurAce covers using ETH the buyCoverByETH function is called by the user.

function buyCoverByETH(
        uint16[] memory products,
        uint16[] memory durationInDays,
        uint256[] memory amounts,
        address currency,
        address owner,
        uint256 referralCode,
        uint256 premiumAmount,
        uint256[] memory helperParameters,
        uint256[] memory securityParameters,
        uint8[] memory v,
        bytes32[] memory r,
        bytes32[] memory s
    )

Input variables :

  • products : InsurAce allows mutliple products to be bought from the platform at once.

  • durationInDays : refers to the duration of days for which the product is being bought

  • amounts : refers to the sum being insured on InsurAce

  • currency : refers to the currency of payment for buying the cover

  • owner : [Description needed]

  • referralCode : refers to the InsurAce partner code. In this case it would be CoverCompared's referral address.

  • premiumAmount : refers to the quote price, the premium to be paid to buy the cover

  • helperParameters : It comes from InsureAce api and it is being used to buy cover in InsureAce smart contract.

  • securityParameters : It comes from InsureAce api and it is being used to buy cover in InsureAce smart contract.

  • v : is a signature parameter which comes from InsureAce API

  • r : is a signature parameter which comes from InsureAce API

  • s : is a signature parameter which comes from InsureAce API

By Cover By Token

To buy insurAce covers using compliant ERC20 tokens the buyCoverByToken function is called by the user.

    function buyCoverByToken(
        uint16[] memory products,
        uint16[] memory durationInDays,
        uint256[] memory amounts,
        address currency,
        address owner,
        uint256 referralCode,
        uint256 premiumAmount,
        uint256[] memory helperParameters,
        uint256[] memory securityParameters,
        uint8[] memory v,
        bytes32[] memory r,
        bytes32[] memory s
    )

Input variables :

  • products : InsurAce allows multiple products to be bought from the platform at once. this parameter refers to the address of protocols in which the funds are being insured

  • durationInDays : refers to the duration of days for which the product is being bought

  • amounts : refers to the sum being insured on InsurAce

  • currency : refers to the currency of payment for buying the cover

  • owner : It is the address who owns cover after buying. In our case it should be user wallet address which is trying to buy cover.

  • referralCode : refers to the InsurAce partner code. In this case it would be CoverCompared's referral address.

  • premiumAmount : refers to the quote price, the premium to be paid to buy the cover

  • helperParameters : It comes from InsureAce api and it is being used to buy cover in InsureAce smart contract.

  • securityParameters : It comes from InsureAce api and it is being used to buy cover in InsureAce smart contract.

  • v : is a signature parameter which comes from InsureAce API

  • r : is a signature parameter which comes from InsureAce API

  • s : is a signature parameter which comes from InsureAce API

PreviousDeFi CoversNextNexus Mutual

Last updated 3 years ago

Was this helpful?