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

Last updated