2.1 - Premium and Option Costs

IVX Diem Token =>

 function calculatePremium(
        uint256 _optionID
    ) public view returns (uint256 premium) 

This returns a 1e18 value to represent the dollar premium cost of said option.

The option full cost is premium + fees, which can be given by

function calculateCosts(
        uint256 _optionID,
        uint256 _amountContracts,
        bool _isClose
    ) external view returns (uint256 fee, uint256 premium) 

To only query the fee:

function calculateFee(
        uint256 _optionID,
        uint256 _amountContracts,
        bool _isClose
    ) public view returns (uint256) {

Last updated