```\nFile: BondFixedExpiryTeller.sol\n        // If fee is greater than the create discount, then calculate the fee and store it\n        // Otherwise, fee is zero.\n        if (protocolFee > createFeeDiscount) {\n            // Calculate fee amount\n            uint256 feeAmount = amount_.mulDiv(protocolFee - createFeeDiscount, FEE_DECIMALS);\n            rewards[_protocol][underlying_] += feeAmount;\n\n            // Mint new bond tokens\n            bondToken.mint(msg.sender, amount_ - feeAmount);\n\n            return (bondToken, amount_ - feeAmount);\n        } else {\n            // Mint new bond tokens\n            bondToken.mint(msg.sender, amount_);\n\n            return (bondToken, amount_);\n        }\n```\n