```\n    uint tokenInPrice = _getMinPrice(address(baseAsset));\n        uint tokenOutPrice = _getMaxPrice(address(quoteAsset));\n    // rest of code\n    uint minOut = tokenInPrice\n      .multiplyDecimal(marketPricingParams[_optionMarket].minReturnPercent)\n        .multiplyDecimal(_amountBase)\n          .divideDecimal(tokenOutPrice);\n```\n