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
  • Buy Product by ETH
  • Buy Product by Token

Was this helpful?

  1. CoverCompared dAPP
  2. Contemporary Covers

MSO

MSO - Medical Second Opinion. Cover Compared had partnered with Wishing Well Corp to enable users to buy MSO via crypto

Buy Product by ETH

To buy an MSO product using ETH the user will call the buyProductByETH function.

    function buyProductByETH(
        string memory productName,
        uint256 priceInUSD,
        uint256 period,
        uint256 conciergePrice,
        bytes memory sig
    ) 

Input variables :

  • productName : refers to the name of the insurance product being bought

  • priceInUSD : refers to the price of the product in USD

  • period : refers to the duration for which the cover is being bought

  • conciergePrice : refers to the price of an added service offered by MSO

  • sig : refers to the signature signed by CoverCompared to authenticate/validate the transaction and price

Buy Product by Token

To buy an MSO product using a supported ERC20 the user will call the buyProductByToken function.

    function buyProductByToken(
        string memory productName,
        uint256 priceInUSD,
        uint256 period,
        address _token,
        address _sender,
        uint256 conciergePrice,
        bytes memory sig
    )

Input variables :

  • productName : refers to the name of the insurance product being bought

  • priceInUSD : refers to the price of the product in USD

  • period : refers to the duration for which the cover is being bought

  • _token : refers to the ERC20 token address in which the payment is being made

  • _sender : refers to the sender

  • conciergePrice : refers to the price of an added service offered by MSO

  • sig : refers to the signature signed by CoverCompared to authenticate/validate the transaction and price

PreviousP4LNextExchange Agent

Last updated 3 years ago

Was this helpful?