```\nFile: BondBaseOFDA.sol\n    function _createMarket(MarketParams memory params_) internal returns (uint256) {\n..SNIP..\n        // Calculate the maximum payout amount for this market\n        uint256 capacity = params_.capacityInQuote\n            ? params_.capacity.mulDiv(\n                scale,\n                price.mulDivUp(\n                    uint256(ONE_HUNDRED_PERCENT - params_.fixedDiscount),\n                    uint256(ONE_HUNDRED_PERCENT)\n                )\n            )\n            : params_.capacity;\n        market.maxPayout = capacity.mulDiv(uint256(params_.depositInterval), uint256(length));\n```\n