Document:

Form of Intercompany Credit Facility

 Exhibit 10.8 

 
  
 FORM OF 
 SENIOR UNSECURED REVOLVING CREDIT AGREEMENT 

dated as of [—] 
 between 
 CVR Refining, LLC 

as Borrower 

and 

Coffeyville Resources, LLC 
 as Lender 
  
  

 TABLE OF CONTENTS 

 

							
	 ARTICLE I
	 	 DEFINITIONS; CONSTRUCTION
	  	 	4	  
	 Section 1.1
	 	 Definitions
	  	 	4	  
	 Section 1.2
	 	 Other Definitional Provisions
	  	 	9	  
	 Section 1.3
	 	 Accounting Terms and Principles
	  	 	9	  
	 ARTICLE II
	 	 AMOUNT AND TERMS OF THE LOANS
	  	 	9	  
	 Section 2.1
	 	 Loan Commitment
	  	 	9	  
	 Section 2.2
	 	 Borrowing Procedure
	  	 	9	  
	 Section 2.3
	 	 Optional Reduction and Termination of Loan Commitment
	  	 	9	  
	 Section 2.4
	 	 Repayment of Loans
	  	 	10	  
	 Section 2.5
	 	 Prepayment
	  	 	10	  
	 Section 2.6
	 	 Interest on Loans
	  	 	10	  
	 Section 2.7
	 	 Computation of Interest
	  	 	10	  
	 Section 2.8
	 	 Evidence of Debt
	  	 	10	  
	 Section 2.9
	 	 Payments Generally
	  	 	10	  
	 Section 2.10
	 	 Taxes
	  	 	11	  
	 Section 2.11
	 	 Illegality
	  	 	11	  
	 ARTICLE III
	 	 CONDITIONS PRECEDENT TO LOANS
	  	 	11	  
	 Section 3.1
	 	 Conditions to Effectiveness
	  	 	11	  
	 Section 3.2
	 	 Conditions to Making of each Loan
	  	 	12	  
	 ARTICLE IV
	 	 REPRESENTATIONS AND WARRANTIES
	  	 	12	  
	 Section 4.1
	 	 Corporate Existence; Compliance with Law
	  	 	12	  
	 Section 4.2
	 	 Power; Authorization; Enforceable Obligations
	  	 	12	  
	 Section 4.3
	 	 No Legal Bar
	  	 	13	  
	 Section 4.4
	 	 No Material Litigation
	  	 	13	  
	 Section 4.5
	 	 No Default
	  	 	13	  
	 Section 4.6
	 	 Use of Proceeds
	  	 	13	  
	 ARTICLE V
	 	 COVENANTS
	  	 	13	  
	 Section 5.1
	 	 Delivery of Financial Information
	  	 	14	  
	 Section 5.2
	 	 Notice of Default
	  	 	14	  
	 Section 5.3
	 	 Conduct of Business and Maintenance of Existence, etc.
	  	 	14	  

  
 2 

							
	 ARTICLE VI
	 	 EVENTS OF DEFAULT
	  	 	14	  
	 Section 6.1
	 	 Events of Default
	  	 	14	  
	 ARTICLE VII
	 	 MISCELLANEOUS
	  	 	16	  
	 Section 7.1
	 	 Notices
	  	 	16	  
	 Section 7.2
	 	 Waiver; Amendments
	  	 	16	  
	 Section 7.3
	 	 Expenses; Indemnification
	  	 	17	  
	 Section 7.4
	 	 Successors and Assigns
	  	 	18	  
	 Section 7.5
	 	 Governing Law
	  	 	18	  
	 Section 7.6
	 	 Counterparts; Integration
	  	 	18	  
	 Section 7.7
	 	 Survival
	  	 	18	  
	 Section 7.8
	 	 Severability
	  	 	18	  

  
 3 

 REVOLVING CREDIT AGREEMENT 

THIS SENIOR UNSECURED REVOLVING CREDIT AGREEMENT (this “Agreement”) is made and entered into as of  [—], 2012 by and among Coffeyville Resources, LLC, a Delaware limited liability company (the “Lender”) and CVR Refining, LLC a Delaware limited liability company (the
“Borrower”). 
 W I T N E S S E T H: 

WHEREAS, the Borrower has requested that the Lender make loans to the Borrower from time to time in an aggregate principal amount
of up to $150,000,000; and 
 WHEREAS, subject to the terms and conditions of this Agreement, the Lender is willing to
make the requested loans to the Borrower. 
 NOW, THEREFORE, in consideration of the premises and the mutual covenants
herein contained, the Borrower and the Lender agree as follows: 
 ARTICLE I 

DEFINITIONS; CONSTRUCTION 
 Section 1.1 Definitions. The following terms used herein shall have the meanings herein specified (to be equally applicable to both the singular and plural forms of the terms defined):

 “Affiliate” means, with respect to any Person, any other Person that directly or indirectly through one or
more intermediaries Controls, is Controlled by or is under common Control with, the Person in question. 

“Agreement” shall have the meaning assigned to such term in the opening paragraph of this Agreement. 

“Applicable Margin” shall mean 3.0% per annum. 

“Availability Period” shall mean the period from and including the Closing Date to but excluding the earlier of the
Maturity Date and the date of termination of the Loan Commitment. 
 “Borrower Affiliate” shall mean the
Borrower and each Subsidiary thereof. 
 “Borrower” shall have the meaning assigned to such term in the opening
paragraph of this Agreement. 
 “Business Day” shall mean a day other than a Saturday, Sunday or other day
on which commercial banks in London are authorized or required by law to close. 

  
 4 

 “Capital Lease Obligations” shall mean, with respect to any Person, the
obligations of such Person to pay rent or other amounts under any lease of (or other arrangement conveying the right to use) real or personal property, or a combination thereof, which obligations are required to be classified and accounted for as
capital leases on a balance sheet of such Person under GAAP; and, for the purposes of this Agreement, the amount of such obligations at any time shall be the capitalized amount thereof at such time determined in accordance with GAAP. 

“Change of Control” shall mean the earlier of the date on which (i) the Lender ceases to Control, directly or
indirectly through one or more intermediaries, the MLP GP or (ii) the Lender and its Affiliates beneficially own less than the majority of the equity interests in the MLP. 

“Closing Date” shall have the meaning assigned to such term in Section 3.1. 

“Code” shall mean the United States Internal Revenue Code of 1986, as amended from time to time. 

“Control” means the possession, direct or indirect, of the power to direct or cause the direction of the management and
policies of a Person, whether through ownership of voting securities, by contract or otherwise. 
 “Default”
means any of the events specified in Article VI, whether or not any requirement for the giving of notice, the lapse of time, or both, has been satisfied. 
 “Default Interest” shall have the meaning set forth in Section 2.6(b). 
 “Default Interest Rate” shall mean the Loan Interest Rate, plus an additional 2% per annum. 
 “Dollars” and “$” shall mean the lawful currency of the United States of America. 
 “Event of Default” shall mean any of the events specified in Article VI, provided that any requirement for the giving of notice, the lapse of time, or both, has been satisfied.

 “Excluded Taxes” shall mean, with respect to the Lender, taxes imposed on or measured by its overall net
income, franchise taxes, and any branch profits or similar tax imposed on it by any jurisdiction. 
 “GAAP”
shall mean United States generally accepted accounting principles applied on a consistent basis. 
 “Governmental
Authority” shall mean any nation or government, any state or other political subdivision thereof and any entity exercising executive, legislative, judicial, regulatory or administrative functions of or pertaining to government. 

“Guarantee Obligation” shall mean as to any Person (the “guaranteeing person”), any obligation of
(a) the guaranteeing person or (b) another Person (including, without limitation, 

  
 5 

 
any bank under any letter of credit), if to induce the creation of such obligation of such other Person the guaranteeing person has issued a reimbursement, counterindemnity or similar obligation,
in either case guaranteeing or in effect guaranteeing any Indebtedness, leases, dividends or other obligations (the “primary obligations”) of any other third Person (the “primary obligor”) in any manner, whether
directly or indirectly; provided, however, that the term Guarantee Obligation shall not include endorsements of instruments for deposit or collection in the ordinary course of business. The amount of any Guarantee Obligation of any
guaranteeing person shall be deemed to be the lower of (a) an amount equal to the stated or determinable amount of the primary obligation in respect of which such Guarantee Obligation is made and (b) the maximum amount for which such
guaranteeing person may be liable pursuant to the terms of the instrument embodying such Guarantee Obligation, unless such primary obligation and the maximum amount for which such guaranteeing person may be liable are not stated or determinable, in
which case the amount of such Guarantee Obligation shall be such guaranteeing person’s maximum reasonably anticipated liability in respect thereof as determined by the Borrower in good faith. 

“Hedge Agreements” shall mean all interest rate or currency swaps, caps or collar agreements, foreign exchange
agreements, commodity contracts or similar arrangements entered into by the Borrower or its Subsidiaries providing for protection against fluctuations in interest rates, currency exchange rates, commodity prices or the exchange of nominal interest
obligations, either generally or under specific contingencies. 
 “Indebtedness” shall mean of any Person at
any date, without duplication, (a) all indebtedness of such Person for borrowed money, (b) all obligations of such Person for the deferred purchase price of Property or services (other than trade payables incurred in the ordinary course of
such Person’s business), (c) all obligations of such Person evidenced by notes, bonds, debentures or other similar instruments, (d) all indebtedness created or arising under any conditional sale or other title retention agreement with
respect to property or assets acquired by such Person (even though the rights and remedies of the seller or lender under such agreement in the event of default are limited to repossession or sale of such property or assets), (e) all Capital
Lease Obligations of such Person, (f) all obligations of such Person, contingent or otherwise, as an account party or applicant under acceptance, letter of credit or similar facilities, (g) all obligations of such Person, contingent or
otherwise, to purchase, redeem, retire or otherwise acquire for value any equity interests of such Person, (h) all Guarantee Obligations of such Person in respect of obligations of the kind referred to in clauses (a) through
(g) above; (i) all obligations of the kind referred to in clauses (a) through (h) above secured by (or for which the holder of such obligation has an existing right, contingent or otherwise, to be secured by)
any Lien on property (including, without limitation, accounts and contract rights) owned by such Person, whether or not such Person has assumed or become liable for the payment of such obligation and (j) all obligations of such Person in
respect of Hedge Agreements. 
 “Interest Period” shall mean, with respect to each Loan, (a) initially,
the period commencing on the borrowing date with respect to such Loan and ending three months thereafter; and (b) thereafter, each period commencing on the last day of the immediately 

  
 6 

 
preceding Interest Period applicable to such Loan and ending three months thereafter; provided that, all of the foregoing provisions relating to Interest Periods are subject to the following:
(i) if any Interest Period would otherwise end on a day that is not a Business Day, such Interest Period shall be extended to the next succeeding Business Day unless the result of such extension would be to carry such Interest Period into
another calendar month in which event such Interest Period shall end on the immediately preceding Business Day; (ii) any Interest Period that would otherwise extend beyond the date final payment is due on the Loans, shall end on such due date,
as applicable; and (iii) any Interest Period that begins on the last Business Day of a calendar month (or on a day for which there is no numerically corresponding day in the calendar month at the end of such Interest Period) shall end on the
last Business Day of the calendar month at the end of such Interest Period. 
 “IPO” means the initial public
offering of equity interests in MLP. 
 “Lender” shall have the meaning assigned to such term in the opening
paragraph of this Agreement. 
 “Lender Indemnitee” shall mean Lender and each of the directors, officers,
employees, agents, trustees, representatives, attorneys, consultants and advisors of or to Lender. 
 “LIBOR”
shall mean, with respect to any Loan, the three (3) month LIBOR rate published in the Wall Street Journal two (2) Business Days before, as applicable, the initial or each subsequent Interest Period applicable to such Loan. 

“Lien” shall mean any mortgage, pledge, hypothecation, assignment, deposit arrangement, encumbrance, lien (statutory or
other), charge or other security interest or any preference, priority or other security agreement or preferential arrangement of any kind or nature whatsoever (including, without limitation, any conditional sale or other title retention agreement
and any capital lease having substantially the same economic effect as any of the foregoing). 
 “Loan” shall
have the meaning set forth in Section 2.1. 
 “Loan Commitment” shall mean the obligation of the
Lender to make Loans hereunder in an aggregate principal amount at any time outstanding not exceeding $150,000,000. 

“Loan Documents” shall mean, collectively, this Agreement and each Notice of Borrowing. 

“Loan Interest Rate” shall mean, with respect to any Loan, LIBOR applicable to such Loan plus the Applicable Margin.

 “Material Adverse Effect” shall mean a material adverse effect on (a) the business, assets,
liabilities, operations or condition (financial or otherwise) of the Borrower and its Subsidiaries taken as a whole, (b) the ability of the Borrower to perform its obligations under this Agreement, or (c) the ability of the Lender to
enforce this Agreement. 

  
 7 

 “Maturity Date” shall mean
[—], 2018. 
 “MLP” shall mean CVR Refining, LP, a Delaware
limited partnership, and the sole member of the Borrower. 
 “MLP GP” shall mean CVR Refining GP, LLC, a
Delaware limited liability company. 
 “Notice of Borrowing” shall have the meaning set forth in
Section 2.2. 
 “Obligations” shall mean, with respect to the Borrower, the unpaid principal of and
interest on (including, without limitation, interest accruing after the maturity of the Loans of the Borrower and interest accruing after the filing of any petition in bankruptcy, or the commencement of any insolvency, reorganization or like
proceeding, relating to the Borrower, whether or not a claim for post-filing or post-petition interest is allowed in such proceeding) the Loans and all other obligations and liabilities of the Borrower to the Lender, whether direct or indirect,
absolute or contingent, due or to become due, or now existing or hereafter incurred, which may arise under, out of, or in connection with, any Loan Document. 
 “Outstanding Amount” shall mean with respect to Loans on any date, the aggregate principal amount of Loans outstanding on such date after giving effect to any borrowings and prepayments
or repayments of Loans occurring on such date. 
 “Payment Office” shall mean the office of the Lender located
at 2277 Plaza Drive, Suite 500 Sugar Land, TX 77479, or such other location as to which the Lender shall have given written notice to the Borrower. 
 “Person” shall mean an individual, partnership, corporation, limited liability company, business trust, joint stock company, trust, unincorporated association, joint venture, Governmental
Authority or other entity of whatever nature. 
 “Quarterly Payment Date” means the last Business Day of March,
June, September and December. 
 “Subsidiary” shall mean as to any Person, a corporation, partnership, limited
liability company or other entity of which shares of stock or other ownership interests having ordinary voting power (other than stock or such other ownership interests having such power only by reason of the happening of a contingency) to elect a
majority of the board of directors or other managers of such corporation, partnership or other entity are at the time owned, or the management of which is otherwise controlled, directly or indirectly through one or more intermediaries, or both, by
such Person. 
 “Taxes” shall mean all present or future taxes, levies, imposts, duties, deductions,
withholdings (including backup withholding), assessments, fees or other charges imposed by any Governmental Authority, including any interest, additions to tax or penalties applicable thereto, provided that “Taxes” shall not include
Excluded Taxes. 

  
 8 

 Section 1.2 Other Definitional Provisions. 

(a) Unless otherwise specified therein, all terms defined in this Agreement shall have the defined meanings when used in the other Loan
Documents or any certificate or other document made or delivered pursuant hereto or thereto. 
 (b) The words
“hereof”, “herein” and “hereunder” and words of similar import when used in this Agreement shall refer to this Agreement as a whole and not to any particular provision of this Agreement, and
Section, Schedule and Exhibit references are to this Agreement unless otherwise specified. 
 (c) The meanings given to terms
defined herein shall be equally applicable to both the singular and plural forms of such terms. 
 (d) The terms
“Lender” shall include, without limitation, its successors. 
 Section 1.3 Accounting Terms and
Principles. Except as set forth below, all accounting terms not specifically defined herein shall be construed in conformity with GAAP and all accounting determinations required to be made pursuant hereto shall, unless expressly otherwise
provided herein, be made in conformity with GAAP. 
 ARTICLE II 

AMOUNT AND TERMS OF THE LOANS 
 Section 2.1 Loan Commitment. 
 (a) Subject to the terms and
conditions set forth herein, the Lender agrees to make revolving loans (each, a “Loan” and, collectively, the “Loans”) to the Borrower during the Availability Period in an aggregate principal amount at any time
outstanding not to exceed the Loan Commitment. 
 (b) During the Availability Period, the Borrower shall be entitled to borrow,
prepay or repay, and reborrow the Loans in accordance with the provisions hereof. 
 Section 2.2 Borrowing
Procedure. The Borrower shall give the Lender written notice (or telephonic notice promptly confirmed in writing) of each borrowing to be made by the Borrower substantially in the form of Exhibit A (a “Notice of Borrowing”), each
such Notice of Borrowing to be delivered prior to noon (Central time) three (3) Business Days before the requested date of each borrowing. Each Notice of Borrowing shall be irrevocable and shall specify: (i) the aggregate principal amount
of such borrowing (which shall be in an aggregate principal amount no less than $5,000,000 or any multiple of $1,000,000 in excess thereof, in each case unless otherwise agreed by the Lender) and (ii) the date of such borrowing (which shall be
a Business Day). 

  
 9 

 Section 2.3 Optional Reduction and Termination of Loan Commitment.

 (a) Upon three (3) Business Days’ written notice to the Lender signed by the Borrower, the Borrower may terminate
the Loan Commitment, or permanently reduce the Loan Commitment to an amount not less than the then Outstanding Amount of all Loans, provided that each partial reduction of the Loan Commitment shall be in integral multiples of $1,000,000 or
more (or such lesser amount as agreed by the Lender). 
 Section 2.4 Repayment of Loans. On the Maturity Date,
the Borrower shall repay any of its Loans then outstanding in full and shall additionally pay to the Lender all other sums, if any, then owing or accrued by it under this Agreement. 

Section 2.5 Prepayment. Upon three (3) Business Days’ (or such shorter period agreed by the Lender) written
notice from a Borrower to the Lender, the Borrower may voluntarily prepay in whole or in part its Loans without premium or penalty. 
 Section 2.6 Interest on Loans. 
 (a) Each Loan shall accrue
interest at the Loan Interest Rate applicable to such Loan. 
 (b) The Borrower shall pay interest due and payable on its Loans
in arrears on each Quarterly Payment Date. 
 (c) While an Event of Default exists or after acceleration of the Loans in
accordance with Article VI, at the option of the Lender, interest on the unpaid principal amount of the Loans of the Borrower (and any unpaid interest with respect thereto) will accrue at the Default Interest Rate (the “Default
Interest”). All Default Interest will be payable by the Borrower upon demand by the Lender. 
 Section 2.7
Computation of Interest. All computations of interest shall be made by the Lender on the basis of a year of 360 days. Each determination by the Lender of an interest amount hereunder shall, except for manifest error, be final,
conclusive and binding for all purposes. 
 Section 2.8 Evidence of Debt. The Loans made by the Lender shall
be evidenced by one or more accounts or records maintained by the Lender. The accounts or records maintained by the Lender shall be conclusive absent manifest error of the amount of the Loans made by the Lender to the Borrower and the interest and
payments thereon. Any failure so to record or any error in doing so shall not, however, limit or otherwise affect the obligation of the Borrower hereunder to pay any amount owing with respect to the Borrower’s Loans. 

Section 2.9 Payments Generally. (a) All payments by the Borrower to the Lender hereunder shall be made to the
Lender at the Payment Office in immediately available funds without setoff or counterclaim. If any payment hereunder shall be due on a day 

  
 10 

 
that is not a Business Day, the date for payment shall be extended to the next succeeding Business Day, and, in the case of the payment accruing interest, interest thereon shall be made payable
for the period of such extension. All payments hereunder shall be made in Dollars. 
 (b) If on the Maturity Date,
insufficient funds are received by and available to the Lender to pay fully all amounts of principal and interest due hereunder, such funds shall be applied (i) first, towards payment of interest, and (ii) second, towards payment of
principal due hereunder. 
 Section 2.10 Taxes. Any and all payments by the Borrower under each Loan Document
shall be made free and clear of and without deduction for any and all present or future Taxes. If any Taxes shall be required by law to be deducted from or in respect of any sum payable under any Loan Document to the Lender, then the Borrower shall
be entitled to make such deduction or withholding and shall timely pay the full amount deducted or withheld to the relevant Governmental Authority in accordance with applicable law and the sum payable by the Borrower shall be increased as necessary
so that after such deduction or withholding has been made (including such deductions and withholdings of Taxes applicable to additional sums payable under this Section) the Lender receives an amount equal to the sum it would have received had no
such deduction or withholding been made. 
 Section 2.11 Illegality. Notwithstanding any other provision of
this Agreement, if the Lender determines that it is unlawful for the Lender to make Loans or to continue to fund or maintain Loans, then, on notice thereof and demand therefor by the Lender to the Borrower, (i) the obligation of the Lender to
make or to continue Loans shall be suspended, and (ii) if Loans are then outstanding, the Borrower shall prepay such Loans within 3 Business Days. 
 ARTICLE III 
 CONDITIONS PRECEDENT TO LOANS 

Section 3.1 Conditions to Effectiveness. This Agreement shall not become effective until the date (such date, the
“Closing Date”) on which each of the following conditions is satisfied (or waived in accordance with Section 7.2): 
 (a) The Lender shall have received a counterpart of this Agreement signed by or on behalf of the Borrower. 
 (b) No Default or Event of Default shall exist on the Closing Date. 
 (c) All
representations and warranties of the Borrower set forth in the Loan Documents shall be true and correct in all material respects on and as of the Closing Date. 

  
 11 

 (d) The closing of the IPO shall have occurred. 

Section 3.2 Conditions to Making of each Loan. The obligations hereunder of the Lender to make each Loan are subject to
the satisfaction (or waiver in accordance with Section 7.2) of the following conditions as of the date each Loan is made: 

(a) The Lender shall have received a signed Notice of Borrowing from the Borrower requesting the making of a Loan on the date specified
therein (which shall be no later than the last day of the Availability Period). 
 (b) At the time of and immediately after
giving effect to the making of the requested Loan, the aggregate Outstanding Amount of all Loans shall not be in excess of the Loan Commitment. 
 (c) At the time of and immediately after giving effect to the making of the requested Loan, no Default or Event of Default shall exist. 

(d) At the time of and immediately after giving effect to the requested Loan, all representations and warranties of the Borrower set forth
in the Loan Documents shall be true and correct in all material respects on and as of such date. 
 (e) The conditions referred
to in Clause 3.1 shall previously have been satisfied. 
 ARTICLE IV 

REPRESENTATIONS AND WARRANTIES 
 To induce the Lender to enter into this Agreement and to make each Loan, the Borrower hereby represents and warrants to the Lender for itself that: 

Section 4.1 Corporate Existence; Compliance with Law. The Borrower and each of its Subsidiaries (a) is duly
organized, validly existing and in good standing under the laws of the jurisdiction of its organization, (b) has the limited liability company power and authority, and the legal right, to own and operate its property and assets, to lease the
property and assets it operates as lessee and to conduct the business in which it is currently engaged, and (c) is in compliance with all requirements of applicable law except, to the extent that the failure to comply therewith could not, in
the aggregate, reasonably be expected to have a Material Adverse Effect. 
 Section 4.2 Power; Authorization;
Enforceable Obligations. 
 (a) The Borrower has the power and authority, and the legal right, to make, deliver and
perform the Loan Documents to which it is a party and to borrow hereunder. The Borrower has taken all necessary action to authorize the execution, delivery and performance of the Loan Documents to which it is a party and, to authorize the borrowings
on the terms and conditions of this Agreement. 

  
 12 

 (b) No consent or authorization of, filing with, notice to or other act by or in respect of,
any Governmental Authority or any other Person is required to be obtained by the Borrower in connection with (i) the borrowings hereunder, (ii) the execution, delivery, validity or enforceability of this Agreement or any of the other Loan
Documents, or (iii) the performance of this Agreement or any of the other Loan Documents, except, in each case, for routine consents, authorizations, filings and notices required to be made in the ordinary course of business. 

(c) This Agreement has been, and, upon execution, each Loan Document shall have been, duly executed and delivered on behalf of the
Borrower. 
 (d) This Agreement constitutes, and each other Loan Document upon execution will constitute, a legal, valid and
binding obligation of the Borrower, enforceable against the Borrower in accordance with its terms, except as enforceability may be limited by applicable bankruptcy, insolvency, reorganization, moratorium or similar laws affecting the enforcement of
creditors’ rights generally and by general equitable principles (whether enforcement is sought by proceedings in equity or at law). 
 Section 4.3 No Legal Bar. The execution, delivery and performance of this Agreement and the other Loan Documents by the Borrower, the borrowings hereunder and the use of the proceeds
thereof will not violate any applicable law or any material agreement of the Borrower and will not result in, or require, the creation or imposition of any Lien on any of its properties or revenues pursuant to any requirement of applicable law or
any such agreement. 
 Section 4.4 No Material Litigation. No litigation, investigation or proceeding of or
before any arbitrator or Governmental Authority is pending or, to the knowledge of the Borrower, threatened by or against the Borrower or any Borrower Affiliate of the Borrower, or against any of its or their respective properties or revenues
(a) with respect to any of the Loan Documents or any of the transactions contemplated hereby or thereby, or (b) that could reasonably be expected to have a Material Adverse Effect. 

Section 4.5 No Default. No Default or Event of Default has occurred and is continuing. 

Section 4.6 Use of Proceeds. The proceeds of each Loan shall be used solely to fund growth capital expenditures.

  
 13 

 ARTICLE V 
 COVENANTS 
 Section 5.1 Delivery of Financial
Information. The Borrower will deliver to the Lender such financial or other information in respect of its business and financial status as the Lender may reasonably require including, but not limited to, copies of its unaudited quarterly
and annual financial statements. 
 Section 5.2 Notice of Default. The Borrower shall promptly give notice to
the Lender of the occurrence of any Default or Event of Default within five (5) Business Days after the Borrower knows or has reason to know thereof. 
 Section 5.3 Conduct of Business and Maintenance of Existence, etc. The Borrower will (a) (i) preserve, renew and keep in full force and effect its corporate or other existence
and (ii) take all reasonable action to maintain all rights, privileges and franchises necessary or desirable in the normal conduct of its business, to the extent that failure to do so could not reasonably be expected to have a Material Adverse
Effect; and (b) comply with all agreements and requirements of applicable law, except to the extent that failure to comply therewith could not, in the aggregate, reasonably be expected to have a Material Adverse Effect. 

ARTICLE VI 

EVENTS OF DEFAULT 
 Section 6.1 Events of Default. If any of the following events shall occur and be continuing: 
 (a) The Borrower shall fail to pay the principal of its Loans on the date when due (including the Maturity Date) in accordance with the terms hereof; or the Borrower shall fail to pay any interest on its
Loans, or any other amount payable hereunder or under any other Loan Document, within three (3) Business Days after any such interest or other amount becomes due in accordance with the terms hereof or thereof; or 

(b) Any representation or warranty made or deemed made by the Borrower herein or in any other Loan Document or that is contained in any
certificate, document or financial or other statement furnished by it at any time under or in connection with this Agreement or any such other Loan Document shall prove to have been inaccurate in any material respect on or as of the date made or
deemed made or furnished; or 
 (c) The Borrower shall default in the observance or performance of any agreement contained in
this Agreement to be performed by it (other than as provided in clause (a) of this Section 6.1), and such default shall continue unremedied for a period of 30 days after the earlier of (i) the date on which an officer of the
Borrower becomes aware of such failure and (ii) the date on which written notice thereof shall have been given to the Borrower by the Lender; or 

  
 14 

 (d) (i) The Borrower or any Borrower Affiliate shall fail to make any payment on any
Indebtedness (other than the Obligations) of the Borrower or any the Borrower Affiliate or on any Guarantee Obligation in respect of Indebtedness of any other Person, and, in each case, such failure relates to Indebtedness having a principal amount
of $25,000,000 or more, when the same becomes due and payable (whether by scheduled maturity, required prepayment, acceleration, demand or otherwise) and the effect of such failure is to accelerate the maturity of such Indebtedness, (ii) any
other event shall occur or condition shall exist under any agreement or instrument relating to any such Indebtedness, if the effect of such event or condition is to accelerate the maturity of such Indebtedness, (iii) any other event shall occur
or condition shall exist under any agreement or instrument relating to any such Indebtedness, if the effect of such event or condition is to permit the acceleration of the maturity of such Indebtedness or (iv) any such Indebtedness shall become
or be declared to be due and payable, or be required to be prepaid or repurchased (other than by a regularly scheduled required prepayment), prior to the stated maturity thereof; 

(e) (i) The Borrower shall commence any case, proceeding or other action (A) under any existing or future law of any jurisdiction,
domestic or foreign, relating to bankruptcy, insolvency, reorganization or relief of debtors, seeking to have an order for relief entered with respect to it, or seeking to adjudicate it a bankrupt or insolvent, or seeking reorganization,
arrangement, adjustment, winding up, liquidation, dissolution, composition or other relief with respect to it or its debts, or (B) seeking appointment of a receiver, trustee, custodian, conservator or other similar official for it or for all or
any substantial part of its assets, or the Borrower shall make a general assignment for the benefit of its creditors; or (ii) there shall be commenced against the Borrower any case, proceeding or other action of a nature referred to in
clause (i) above that (A) results in the entry of an order for relief or any such adjudication or appointment or (B) remains undismissed, undischarged or unbonded for a period of sixty (60) days; or (iii) there shall
be commenced against the Borrower any case, proceeding or other action seeking issuance of a warrant of attachment, execution, distraint or similar process against all or any substantial part of its assets that results in the entry of an order for
any such relief that shall not have been vacated, discharged, or stayed or bonded pending appeal within sixty (60) days from the entry thereof; or (iv) the Borrower shall take any action in furtherance of, or indicating its consent to,
approval of, or acquiescence in, any of the acts set forth in clause (i), (ii), or (iii) above; or (v) the Borrower shall generally not, or shall be unable to, or shall admit in writing its inability to, pay its debts
as they become due; or 
 (f) A Change of Control shall occur; 
 then, and in any such event, (A) if such event is an Event of Default specified in clause (i) or (ii) of paragraph (e) above, (i) the Loan Commitment shall terminate immediately
and the Loans 

  
 15 

 
(with accrued interest thereon) and all other amounts owing under this Agreement and the other Loan Documents shall immediately become due and payable, and (B) if such event is any other
Event of Default, the Lender may, by notice to the Borrower, terminate the Loan Commitment, whereupon the Loan Commitment shall terminate immediately, and declare the Loans (with accrued interest thereon) and all other amounts owing under this
Agreement and the other Loan Documents to be due and payable forthwith, whereupon the same shall immediately become due and payable. 
 ARTICLE VII 
 MISCELLANEOUS 

Section 7.1 Notices. 
 (a) Addresses for Notices. All notices, demands, requests, consents and other communications provided for in this Agreement shall be given in writing, and addressed to the party to be
notified as follows: 
  

			
	To the Borrower:	  	 CVR Refining, LLC
 10 East
Cambridge Circle Drive
 Suite 250

Kansas City, KS 66103
 Attn: Chief Financial
Officer

		
	To the Lender:	  	 Coffeyville Resources, LLC

2277 Plaza Drive, Suite 500
 Sugar Land, TX
77479
 Attn: Chief Financial Officer

 Any party hereto may change its address, telephone number or facsimile number for notices and other communications
hereunder by notice to the other parties hereto. All such notices and other communications shall, when transmitted by overnight delivery, or faxed, be effective when delivered for overnight (next-day) delivery, or transmitted in legible form by
facsimile machine, respectively, or if mailed, upon the third Business Day after the date deposited into the mail or if delivered, upon delivery. 
 (b) Effectiveness of Notices. All notices, demands, requests, consents and other communications described in Section 7.1(a) shall be effective (i) if delivered by hand,
including any overnight courier service, upon personal delivery and (ii) if delivered by mail, when deposited in the mails. 

Section 7.2 Waiver; Amendments. No amendment or waiver of any provision of this Agreement or any other Loan Document
nor consent to any departure by the Borrower therefrom shall in any event be effective unless the same shall be in writing and (x) in the 

  
 16 

 
case of any such waiver or consent, signed by the Lender and (y) in the case of any other amendment, by the Lender and the Borrower, and then any such waiver or consent shall be effective
only in the specific instance and for the specific purpose for which given. 
 Section 7.3 Expenses;
Indemnification. 
 (a) The Borrower shall be obligated to pay all out-of-pocket costs and expenses (including,
without limitation, but not limited to the reasonable fees, charges and disbursements of outside counsel for the Lender) incurred by the Lender in connection with the enforcement or protection of its rights in connection with this Agreement,
including its rights under this Section 7.3, including all such out-of-pocket expenses incurred during any workout, restructuring or negotiations in respect of the Loans. 

(b) The Borrower shall be obligated to indemnify each Lender Indemnitee against, and hold each Lender Indemnitee harmless from, any and
all losses, claims, damages, liabilities and related expenses (including the fees, charges and disbursements of any counsel for any Lender Indemnitee) incurred by any Lender Indemnitee or asserted against any Lender Indemnitee by any third party or
by the Borrower arising out of, in connection with, or as a result of (i) the execution or delivery of this Agreement, any other Loan Document or any agreement or instrument contemplated hereby or thereby, the performance by the parties hereto
of their respective obligations hereunder or thereunder or the consummation of the transactions contemplated hereby or thereby, or (ii) any actual or prospective claim, litigation, investigation or proceeding relating to any of the foregoing,
whether based on contract, tort or any other theory, whether brought by a third party or by the Borrower, and regardless of whether any Lender Indemnitee is a party thereto, provided that such indemnity shall not, as to any Lender Indemnitee,
be available to the extent that such losses, claims, damages, liabilities or related expenses (x) are determined by a court of competent jurisdiction by final judgment to have resulted from the gross negligence or willful misconduct of such
Lender Indemnitee or (y) result from a claim brought by the Borrower against any Lender Indemnitee for breach in bad faith of such Lender Indemnitee’s obligations hereunder or under any other Loan Document, if the Borrower has obtained a
final judgment in their favor on such claim as determined by a court of competent jurisdiction. 
 (c) The Borrower shall be
obligated to pay, and hold the Lender harmless from and against, any and all present and future stamp, documentary, and other similar taxes with respect to this Agreement and any other Loan Documents, any collateral described therein, or any
payments due thereunder, and save the Lender harmless from and against any and all liabilities with respect to or resulting from any delay or omission to pay such taxes. 

  
 17 

 (d) To the extent permitted by applicable law, each party shall not assert, and hereby
waives, any claim against any Lender Indemnitee or the other party, on any theory of liability, for special, indirect, consequential or punitive damages (as opposed to actual or direct damages) arising out of, in connection with or as a result of,
this Agreement or any agreement or instrument contemplated hereby, the transactions contemplated therein, the Loans or the use of proceeds thereof. 
 (e) All amounts due under this Section 7.3 shall be payable promptly after written demand therefor. 
 Section 7.4 Successors and Assigns. The provisions of this Agreement shall be binding upon and inure to the benefit of the parties hereto and their respective successors and assigns
permitted hereby, except that the Borrower may not assign or otherwise transfer any of its rights or obligations hereunder, and the Lender may not assign or otherwise transfer any of its rights or obligations hereunder without the prior written
consent of the Borrower. Any other attempted assignment or transfer by any party hereto shall be null and void. Nothing in this Agreement, expressed or implied, shall be construed to confer upon any Person (other than the parties hereto,
their respective successors and assigns permitted hereby and, to the extent expressly contemplated hereby, each Lender Indemnitee) any legal or equitable right, remedy or claim under or by reason of this Agreement. 

Section 7.5 Governing Law. This Agreement and the rights and obligations of the parties hereto shall be governed by,
and construed and interpreted in accordance with, the law of the State of New York. 
 Section 7.6 Counterparts;
Integration. This Agreement may be executed in any number of counterparts and by electronic means (including “pdf”) and by different parties in separate counterparts, each of which when so executed shall be deemed to be an original
and all of which taken together shall constitute one and the same agreement. 
 Section 7.7 Survival. All
covenants, agreements, representations and warranties made by the Borrower herein and in the certificates or other instruments delivered in connection with or pursuant to this Agreement shall be considered to have been relied upon by the Lender and
shall survive the execution and delivery of this Agreement and the making of the Loans. The provisions of Section 7.3 shall survive and remain in full force and effect regardless of the consummation of the transactions contemplated hereby,
the repayment of the Loans or the termination of this Agreement or any provision hereof.
 Section 7.8
Severability. Any provision of this Agreement or any other Loan Document held to be illegal, invalid or unenforceable in any jurisdiction, shall, as to such jurisdiction, be ineffective to the extent of such illegality, invalidity or
unenforceability without affecting the legality, validity or enforceability of the remaining provisions hereof or thereof; and the illegality, invalidity or unenforceability of a particular provision in a particular jurisdiction shall not invalidate
or render unenforceable such provision in any other jurisdiction. 
 [Signature Pages Follow] 

  
 18 

 IN WITNESS WHEREOF, the parties hereto have caused this Agreement to be duly executed
as of the day and year first above written. 
  

			
	CVR REFINING, LLC
	
	as Borrower
		
	By:	 	  

		
		 	Name:
		
		 	Title:
	
	COFFEYVILLE RESOURCES, LLC
	
	as Lender
		
	By:	 	  

		
		 	Name:
		
		 	Title:

 EXHIBIT A 

FORM OF NOTICE OF BORROWING 
 [DATE] 
 Coffeyville Resources, LLC 
 [Address] 
 Dear Sirs: 
 Reference is made to that certain Loan Agreement, dated as of [—] (the “Loan Agreement”), by and among Coffeyville Resources, a Delaware
limited liability company (the “Lender”) and CVR Refining, LLC, a Delaware limited liability company (the “Borrower”). 
 The Borrower hereby requests the following Loan under the Loan Agreement, and in that connection the Borrower specifies the following information with respect to such Loan: 

 

			
	(a) Principal amount of Loan:	  	$[            ]
		
	(b) Date of Loan:	  	  [            ]

 The Borrower hereby certifies as follows: 
 (c) Immediately after giving effect to the making of the requested Loan, the aggregate Outstanding Amount of all Loans is not in excess of the Loan Commitment. 

(d) At the time of and immediately after giving effect to the making of the requested Loan, no Default or Event of Default exists.

 (e) At the time of and immediately after giving effect to the making of the requested Loan, all representations and warranties
of the Borrower set forth in the Loan Documents are true and correct in all material respects on and as of such date. 

 IN WITNESS WHEREOF, the undersigned has caused this Notice of Borrowing to be
executed on the date first written above. 
  

			
	 CVR REFINING, LLC
  

as Borrower

		
	By:	 	  

		
		 	Name:
		
		 	Title:Pipeline Construction, Operation and Transportation Commitment Agreement

 Exhibit 10.17 
 PORTIONS OF THIS EXHIBIT DENOTED WITH THREE ASTERISKS (***) HAVE BEEN OMITTED PURSUANT TO A REQUEST FOR CONFIDENTIAL TREATMENT. 
 AMENDMENT NO. 2 TO 
 PIPELINE CONSTRUCTION, OPERATION AND TRANSPORTATION
COMMITMENT 
 AGREEMENT 
 This Amendment No. 2 shall amend that certain Pipeline Construction, Operation and Transportation Commitment Agreement dated February 11, 2004 (“Agreement”) by and between Plains
Pipeline, L.P., a Texas limited partnership (“Carrier”) and Coffeyville Resources Refining & Marketing, L.L.C, a Delaware limited liability company (“Shipper”), as follows: 

WHEREAS, Carrier and Shipper are parties to the Agreement and desire to amend the Agreement on the terms and conditions set forth below;
and 
 WHEREAS, Shipper is required on or after February 21, 2005 to take delivery from BP Crude Oil Supply Company of
approximately 256,000 barrels of crude oil representing line fill from the Cushing Chicago Pipeline System at Broome Station (“Line Fill”), which Line Fill is destined for delivery to Coffeyville, Kansas via the Coffeyville Resources Crude
Transportation, LLC 16-inch pipeline running from Broome Station to the Shipper’s refinery in Coffeyville, Kansas; and 

WHEREAS, although the Line Fill is not Tendered or Deemed Tendered under the Agreement, Carrier is willing to give Shipper credit for the
Line Fill toward Shipper’s Volume Commitment under Sections 2.1 (Commitment and Transportation Service) and 2.3 (Deficiency Payments) of the Agreement 
 NOW THEREFORE, Carrier and Shipper, intending to be legally bound, hereby agree as follows: 
 1. Carrier will receive credit pursuant to Sections 2.1 and 2.3 of the Agreement, up to a maximum total of 256,000 barrels, for each barrel of Line Fill delivered by or on behalf of Shipper to
Coffeyville, Kansas on or after February 21, 2005. The credit shall only be applied to Shipper’s Volume Commitment under the Agreement for the month in which the portion of the Line Fill being credited is actually delivered to Coffeyville,
Kansas. If the delivery takes place in more than one calendar quarter, the Line Fill actually delivered in any calendar quarter can only be credited to the Shipper’s Volume Commitment for that calendar quarter 

Capitalized terms not defined herein shall have the meanings ascribed to them in the Agreement 

This Amendment No. 2 may be executed in counterparts, which taken together shall constitute one and the same instrument and either
party to this Amendment No. 2 may execute this Amendment No. 2 by signing any such counterpart. Except as previously amended by Amendment No. 1 and as otherwise amended herein by this Amendment No. 2, the Agreement shall remain
unchanged and in full force and effect, and is hereby in all respects ratified and confirmed 
 IN WITNESS WHEREOF, Carrier and
Shipper have executed this Amendment No 2 to be effective as of the 21st day of February, 2005 
  

			
	 PLAINS PIPELINE, L.P.

	 By: Plains Marketing GP Inc., its General Partner

		
	 By:
	 	 /s/ George R Coiner

		 	Name: George R Coiner
		 	Title: Senior Group Vice President

 
			
	 COFFEYVILLE RESOURCES REFINING & MARKETING, L.L.C

		
	 By:
	 	 /s/ Stanley A. Riemann

		 	 Name: Stanley A. Riemann

		 	 Title: Chief Operating Officer

  
 2 

 EXECUTION COPY 

AMENDMENT NO. 1 TO 
 PIPELINE CONSTRUCTION, OPERATION AND 
 TRANSPORTATION COMMITMENT AGREEMENT

 AMENDMENT NO. 1 (this “Amendment”), dated as of July 15, 2004, to the Pipeline Construction, Operation and
Transportation Commitment Agreement (the “Commitment Agreement”) dated February 11, 2004, by and between Plains Pipeline, L.P., a Texas limited partnership (“Carrier”) and Coffeyville Resources
Refining & Marketing, LLC, a Delaware limited liability company (“Shipper”). Capitalized terms not defined herein shall have the meanings ascribed to them in the Commitment Agreement. 

WITNESSETH: 
 WHEREAS, the Carrier and Shipper are parties to the Commitment Agreement and desire to amend the Commitment Agreement on the terms and conditions set forth below. 

NOW THEREFORE, the Parties, intending to be legally bound, hereby agrees as follows: 

1. Amendments to the Commitment Agreement. 
 (a) Section 2.1(i) of the Commitment Agreement is hereby amended by adding the following sentence at the end of subsection 2.1(i): 
 For the avoidance of all doubt, for purposes of this Sections 2.1 and 2.3, and Carrier’s pipeline space allocation procedures, Shipper will receive credit toward Shipper’s Volume Commitment
for all shipments of Specified Crude Oil Shipper causes to be tendered by third parties on its behalf and all such third party shipments shall be deemed to be shipments of Shipper (i.e., as though Shipper were shipper of record respecting all such
shipments) for purposes of this Agreement. Such third party volumes shall also be credited to Carrier’s transportation service obligations to Shipper. 
 (b) Section 2.2 of the Commitment Agreement is amended by adding the following words in the seventh line thereof after the word “System” and before the word “exceed”:

 “, including without limitation costs incurred to obtain necessary additional rights of way which are not currently owned by Coffeyville
Resources Crude Transportation, LLC, 
 2. Binding Effect. Except as hereby amended, the Agreement shall remain in
full force and effect, and is hereby, in all respects, ratified and confirmed. 

 3. Miscellaneous. 

(a) Execution in Counterparts. This Amendment may be executed in counterparts, which taken together shall constitute one and the
same instrument and either party to this Amendment may execute this Amendment by signing any such counterpart. 
 (b)
Headings. The section and subsection headings appearing in this Amendment are included solely for convenience of reference and are not intended to affect the interpretation of any provision of this Amendment. 

(c) Severability. If any provision contained in or obligation under this Amendment shall be invalid, illegal or unenforceable in
any jurisdiction, the validity, legality and enforceability of the remaining provisions or obligations, or of such provision or obligation in any other jurisdiction, shall not in any way be affected or impaired thereby. 

IN WITNESS WHEREOF, the Parties have executed this Amendment as of the date first above written. 

 

			
	 PLAINS PIPELINE, L.P.

	
	 By Plains Marketing GP Inc., its General Partner

		
	 By:
	 	 /s/ George Coiner

		 	 Name: George Coiner

		 	 Title: Senior Group Vice President

  

			
	 COFFEYVILLE RESOURCES REFINING & MARKETING, LLC

		
	 By:
	 	 /s/ Philip L. Rinaldi

		 	 Philip L. Rinaldi

		 	 Chief Executive Officer

  
 2 

 3. Miscellaneous. 

(a) Execution in Counterparts. This Amendment may be executed in counterparts, which taken together shall constitute one and the
same instrument and either party to this Amendment may execute this Amendment by signing any such counterpart. 
 (b)
Headings. The section and subsection headings appearing in this Amendment are included solely for convenience of reference and are not intended to affect the interpretation of any provision of this Amendment. 

(c) Severability. If any provision contained in or obligation under this Amendment shall be invalid, illegal or unenforceable in
any jurisdiction, the validity, legality and enforceability of the remaining provisions or obligations, or of such provision or obligation in any other jurisdiction, shall not in any way be affected or impaired thereby. 

IN WITNESS WHEREOF, the Parties have executed this Amendment as of the date first above written. 

 

					
	PLAINS PIPELINE, L.P.
	By Plains Marketing GP Inc., its General Partner
		
	 By:
	 	 
	 Name:
	 	 
	 Title:
	 	 

 
					
	
	COFFEYVILLE RESOURCES REFINING & MARKETING, LLC
		
	 By:
	 	 /s/ Philip L. Rinaldi

		 	 Philip L. Rinaldi

		 	 Chief Executive Officer

  
 2 

 EXECUTION COPY 

PIPELINE CONSTRUCTION, OPERATION AND 
 TRANSPORTATION COMMITMENT AGREEMENT 
 This Pipeline Transportation
Service Agreement (this “Agreement”) dated this 11th day of February, 2004 (the “Effective Date”) is entered into by and between Plains Pipeline, L.P., a Texas limited partnership (“Carrier”) and Coffeyville Resources
Refining & Marketing, LLC, a Delaware limited liability company (“Shipper”). Carrier and Shipper are sometimes referred to herein individually as “Party” and collectively as the “Parties.” 

WHEREAS Shipper is in the process of acquiring from Farmland Industries, Inc. its refinery and related assets (the “Refinery”) located in
Coffeyville, Kansas, the closing of which (the “Closing”) is anticipated to occur on or about February 12, 2004; 
 WHEREAS
Carrier is proposing to construct, by the Target Completion Date (as hereinafter defined), own and operate a pipeline system comprised of a 16 inch diameter pipeline and related equipment to extend from Cushing, Oklahoma to Broom Station, Caney,
Kansas for the transportation of crude oil to the Refinery and such other destinations as may hereafter be established by Carrier (the “Cushing to Broom Pipeline System”); and 
 WHEREAS Carrier’s obligation to construct the Cushing to Broom Pipeline System and Shipper’s obligations to ship or cause to be transported and pay are be subject to the occurrence of the
Closing, notice of which Shipper will give if and when the Closing occurs; 
 WHEREAS Shipper has requested and Carrier has agreed to transport,
or cause others to transport, the Volume Commitment (as hereinafter defined) of Specified Crude Oil (as hereinafter defined), during the term hereof, tendered by Shipper or Shipper’s agent (or others who transport volumes pursuant to request of
Shipper) to Carrier pursuant to the terms and conditions of this Agreement; 
 WHEREAS Shipper wishes to make a firm commitment regarding the
transportation of the Volume Commitment of Specified Crude Oil for the First Period (as hereinafter defined) of the term hereof on the Cushing to Broom Pipeline System; and 
 WHEREAS in recognition of the commitment provided by Shipper for the Cushing to Broom Pipeline System, Carrier is prepared to construct, own and operate the Cushing to Broom Pipeline System in accordance
with the provisions of this Agreement. 
 NOW, THEREFORE, for and in consideration of the mutual benefits hereunder, and other good and valuable
consideration, the receipt and sufficiency of which are hereby acknowledged, Shipper and Carrier agree as follows: 
 ARTICLE
I 
 DEFINITIONS 
 1.1 Definitions. Capitalized terms used herein shall have the meanings set forth below or in FERC No. 2. 
 “Commencement Date” means the day on which the Cushing to Broom Pipeline System becomes operational, as notified by Carrier to Shipper in writing. 

“Deemed Tendered” means Specified Crude Oil that Shipper proposes to tender at the Point of Origin but which Carrier is unable
to transport over the Cushing to Broom Pipeline system for any reason other than Force Majeure or the fault of Shipper. 

 “Destination” has the meaning given in Section 2.1. 

“FERC” means the Federal Energy Regulatory Commission. 

“FERC No. 2” means Carrier’s tariff FERC No. 2, as supplemented or superseded from time to time. A copy is
attached hereto and made a part hereof. 
 “First Period” means the first five years of the Term, commencing on the
Commencement Date and ending on the fifth anniversary of the Commencement Date. 
 “Notice to Proceed” means the
notice to be given by Shipper to Carrier notifying Carrier that the Closing has occurred and that Carrier is authorized and directed to proceed to commence construction of the Cushing to Broom Pipeline System. 

“Outside Date” means the date that is nine months after the date of the Notice to Proceed. 

“Point of Origin” has the meaning given in Section 2.1. 

“Proposed FERC Tariff” means the FERC tariff to be filed by Carrier consistent with this Agreement. 

“Refinery Operating Plan” means Shipper’s annual operating plan for the Refinery which” sets forth planned outages
during such year, and as such plan shall be updated by Shipper from time to time. 
 “Second Period” means the period
commencing at the end of the First Period and continuing for 15 years thereafter. 
 “Specified Crude Oil” means
crude oil falling within the ranges set forth below: 
 (i) Gravity: Minimum 26 degrees API gravity at 60 degrees Fahrenheit;

 (ii) Viscosity: Maximum 90 Saybolt Universal Seconds at 60 degrees Fahrenheit; 

(iii) Pressure: Reid Vapor Pressure not to exceed 9 pounds per square inch at any time; 

(iv) Impurities: Sediment (BS&W), water and other impurities; less than 1%; each of the above as determined by the accepted A.S.T.M.
Standard. 
 “Target Completion Date” means the date that is eight months after the date of the Notice to Proceed.

 “Tariff Rate” has the meaning given in Section 2.2. 

“Tendered” means Specified Crude Oil that is actually tendered for delivery and is transported over the Cushing to Broom
Pipeline System or Crude Oil that is Deemed Tendered. 
 “Term” has the meaning set forth in Section 3.1 of this
Agreement. 
 “Volume Commitment” has the meaning set forth in Section 2.1. 

“Volume Deficiency” has the meaning set forth in Section 2.3. 

  
 2 

 ARTICLE II 
 COMMITMENT AND TRANSPORTATION SERVICE AND RATES 
 2.1 Commitment and
Transportation Service. Subject to the provisions of this Agreement, and FERC No. 2: 
 (i) Beginning on the
Commencement Date and continuing thereafter during the First Period of the Term of this Agreement, Shipper agrees to Tender, or cause others to Tender, to Carrier, pursuant to the Proposed FERC Tariff and the FERC Tariff as filed and effective from
and after the Commencement Date, at Cushing, Oklahoma (the “Point of Origin”), for transportation to Broom Station, Caney, Kansas (the “Destination”) a daily average of 80,000 barrels per day of Specified Crude Oil (the
“Volume Commitment”), and Carrier agrees to provide transportation service hereunder for Shipper in respect of such volumes of Specified Crude Oil Tendered. 
 (ii) For the remaining 15 years of the Term and each Renewal Term, (a) Shipper agrees to Tender to Carrier, all its Specified Crude Oil required to be transported into the Refinery, up to the
capacity of the Cushing to Broom Pipeline System (other than crude oil to be transported which Shipper will purchase from the crude oil gathering system owned by its affiliate Coffeyville Resources Crude Transportation, LLC (as such gathering system
is configured and built on the date hereof); and (b) Carrier agrees that if Destinations, other than Broom Station for delivery to Shipper, are added to the Cushing to Broom Pipeline System during the term hereof, then Carrier shall expand the
capacity throughput of the Cushing to Broom Pipeline System to accommodate the additional volumes so as to avoid any adverse impact on the volumes being transported by Shipper at such time hereunder. 

2.2 Contract Rate. Beginning on the Commencement Date and continuing thereafter during the Term of this Agreement, Shipper shall
be obligated to pay for all transportation service up to the Volume Commitment for any period in accordance with the Proposed FERC Tariff and the FERC Tariff as filed and effective which shall have a minimum initial rate of $0.242 (twenty-four cents
and two mills) per barrel of Specified Crude Oil (the “Initial Rate”), as such rate shall be adjusted from time to time pursuant to Section 2.4 (as so adjusted, the “Tariff Rate”); provided that (i) if the final all-in
construction costs to complete the Cushing to Broom Pipeline System exceed (***), then the Initial Rate shall be increased in the amount of (***) per barrel of Specified Crude Oil for each additional (***) of construction costs up to an adjusted
Initial Rate equal to (***) per barrel of Specified Crude Oil under such adjustment method to recover any construction costs up to (***); and (ii) to the extent the final all-in construction costs to complete the Cushing to Broom Pipeline
System exceed (***), then the Initial Rate shall be further increased to allow for recovery by Carrier of (***) of the excess cost over (***) on the same capital recovery basis as had been used to compute the Initial Rate. Shipper agrees to
cooperate with Carrier to provide or procure an “unaffiliated shipper letter” in support of the Proposed FERC Tariff. 
 In addition,
the Tariff Rate shall be subject to the following viscosity surcharge (in cents per barrel) for each barrel of Specified Crude Oil shipped over the Cushing to Broom Pipeline System having a viscosity in excess of 90 Saybolt Universal Seconds
(“SUS”) at 60 degrees Fahrenheit: 
  

					
	Viscosity	  	Surcharge	 
	(SUS range)	  	(cents per bbl)	 
	 90-99
	  	 	0.6	  
	 100-109
	  	 	0.75	  
	 110-119
	  	 	0.9	  

 2.3 Deficiency Payments. Beginning on the Commencement Date and continuing thereafter during the
First Period of the Term of this Agreement, Shipper’s Volume Commitment (in barrels) for a month or part of a month (“Contract Month”) shall be determined by multiplying the daily Volume Commitment by the number of days in such
Contract Month. Shipper agrees to pay Carrier the Tariff 

  
 3 

 Rate (upon invoice at the end of each calendar quarter) for any Volume Deficiency (the positive difference
of subtracting the Barrels which Shipper has Tendered for a Contract Month from Shipper’s Volume Commitment for such Contract Month) remaining after crediting volumes in excess of the Volume Commitment for such quarter against such Volume
Deficiencies. For avoidance of doubt, Volume Deficiencies occurring during any Contract Month during a calendar quarter may be made up utilizing volume credits arising during any other Contract Month in the same calendar quarter. There shall be no
carryover volume credits or makeup of Volume Deficiencies between or among different calendar quarters except as follows: 
 (i)
if a Volume Deficiency occurs as a result of an event of Force Majeure, then Shipper’s Volume Deficiency shall be reduced to the extent that Shipper’s deliveries are directly affected by such event of Force Majeure. In addition, In the
event Carrier’s obligations or services are directly affected by an event of Force Majeure, such obligations or services of Carrier shall be relieved for the duration of such Force Majeure event. If there are any such reductions of the Volume
Deficiency due to Force Majeure, the First Period shall be extended by the number of days required to achieve the cash revenue equal to or greater than the deficiency payment otherwise required by this provision, “Force Majeure” means an
event beyond the reasonable control of the party affected which unexpectedly impedes such party’s performance hereunder, which shall include without limitation an act of God, fire, flood, war, military action or act of public enemy, national
emergency, blackout or other failure of utilities, general failure of the banking or postal system, vandalism or other criminal acts, acts of terrorism, quarantine, the authority of law, strikes, riots, civil disorder, or action, requisition or
necessity of a government entity. 
 (ii) If a Volume Deficiency occurs as a result of planned outages under the Refinery
Operating Plan , then Shipper’s Volume Deficiency shall be reduced to the extent that Shipper’s deliveries are directly affected by such planned outages under the Refinery Operating Plan up to a maximum reduction in the Volume Commitment
of 10,000 barrels per day on an average basis over any calendar year of the First Period, (In other words, the Volume Commitment shall in no event be reduced below 70,000 barrels per day for any calendar year as a result of planned outages under the
Refinery Operating Plan.) If there are any such reductions of the Volume Deficiency due to planned outages under the Refinery Operating Plan, the First Period shall be extended by the number of days required to achieve the cash revenue equal to of
greater than the deficiency payment otherwise required by this provision. 
 2.4 Revisions to Contract Terms or Contract
Rate. Except as provided in this provision during the Term of this Agreement, Carrier will not revise the terms of the Proposed FERC Tariff after it is filed and effective. No more than once a year and upon thirty (30) days written notice
to Shipper, Carrier shall have the right, at its sole discretion, to adjust the rate payable for transportation under the filed and effective FERC Tariff by the indexing methodology set by the FERC pursuant to 18 C.F.R §342.3. In addition,
Carrier reserves the right to seek tariff surcharges or increases due to (i) increased costs for utility services, including costs for electricity and natural gas service; and (ii) new state or federal regulatory rules or regulations that
are implemented that require Carrier to make capital improvements; provided that increases to account for capital improvements made pursuant to clause (ii) shall be amortized over a five-year period, net of tax benefits, with an interest factor
of the prime rate as published in the Wall Street Journal from time to time plus 1.5% per annum on such net amount. 

2.5 Loss Allowance. A deduction will be made to each monthly invoice to cover the actual crude losses occurring due to
evaporation, interface, losses, and other normal losses during transportation for the period covered by the applicable invoice. 

2.6 FERC Jurisdiction. This Agreement is subject to all applicable rules and regulations of the FERC. Shipper agrees that it shall
not protest, file a complaint or otherwise contest in any federal or state judicial or administrative proceeding the reasonableness of the rates and charges contained in this Agreement, including the Proposed FERC Tariff as and after it is filed and
effective. 

  
 4 

 ARTICLE III 
 TERM OF AGREEMENT AND TERMINATION 
 3.1 Term. The term
of Agreement shall be effective from the Effective Date and shall continue until the end of the Second Period (the “Term”), unless terminated earlier pursuant to Section 3.3 hereof. This Agreement is binding on the parties from the
Effective Date but neither party shall have any affirmative performance obligations (other than Shipper’s giving notice of the Closing) until the Closing occurs, which notice Carrier shall give by facsimile upon the occurrence of the Closing.
The term of this agreement for purposes of crude transportation service and payment obligations shall consist of the First Period and the Second Period thereafter, for a total commitment and service period of 20 years from the Commencement
Date, unless extended pursuant to Section 2.3. Carrier shall give written notice to Shipper as to the Commencement Date in accordance with Article IV. 
 3.2 Renewal Terms. At the expiry of the Term, this Agreement shall continue for consecutive renewal terms of five years each (each a “Renewal Term”) unless either party
gives written notice of its desire to terminate this Agreement not later than one year prior to the end of the then-effective Term or Renewal Term, as the case may be. 
 3.3 Termination. Except as provided in Section 3.2, this Agreement shall terminate if the Closing has not occurred by April 30, 2004. 

ARTICLE IV 

INVOICING AND PAYMENT 
 4.1Payment. Carrier shall provide Shipper with a monthly invoice on or about the fifteenth day of the month for transportation services rendered in the immediately prior month, setting forth
the number of barrels Tendered (including barrels Deemed Tendered), the amount of any Volume Deficiency payment due and the calculation thereof, and the amount of any true-up for losses for the month pursuant to Section 2.5. Shipper shall
render payment no later that 15 days after receipt. 
 ARTICLE V 

PIPELINE CONSTRUCTION, OPERATION AND MAINTENANCE 
 5.1 Notice to Proceed. Promptly following the Closing, Shipper shall give Carrier a Notice to Proceed, stating that the Closing has occurred and that Carrier is authorized to proceed to
commence the permitting, design, engineering and construction of the Cushing to Broom Pipeline System. 
 5.2
Construction. Upon receipt of the Notice to Proceed, Carrier shall immediately commence preparation of the routing and design. Shipper shall cooperate with Carrier with respect to providing assistance to grant Carrier access to
Shipper’s rights of way for purposes of construction, ownership, operation and maintenance of the Cushing to Broom Pipeline System. 
 5.3 Schedule and Completion. Carrier shall use its best efforts to complete the Cushing to Broom Pipeline System by the Target Completion Date, and in any event by the Outside Date,
Carrier shall provide Shipper with a written status reports for each month no later than the tenth day of the succeeding month, setting forth progress and remaining activities to achieve completion, together with a status of likelihood to complete
by the Target Completion Date and any anticipated delays in meeting the schedule. Carrier shall have no liability for failure to complete the Cushing to Broom Pipeline System by the Outside Date except in case of gross negligence or willful
misconduct. 
 5.4 Cooperation and Documentation. Shipper and Carrier shall cooperate fully at all times
with each other to facilitate the timely construction of the Cushing to Broom Pipeline System, and each agrees to enter into such other documents as may be appropriate to facilitate construction and timely completion of the Cushing to Broom Pipeline
System, such as rights of way, which shall include provisions for appropriate insurance respecting construction and operations on Shipper property. 

  
 5 

 Shipper will grant Carrier rights of way over Shipper’s existing rights of way sufficient for the
construction, ownership, operation and maintenance of the Cushing to Broom Pipeline System by customary assignments or partial assignments with carrier’s liability as assignee commencing as and from the effective date of the assignment with
assignor retaining pre-effective date obligations and conditions. 
 5.5 Compliance with Laws. At all times
during the Term and any Renewal Terms Carrier shall (i) operate and maintain the Cushing to Broom Pipeline System in conformance with all applicable laws and prudent pipeline operating practice and (ii) maintain adequate insurance coverage
over the rights of way granted by Shipper to Carrier. Shipper shall be an additional insured and Carrier shall indemnify Shipper for all damage or loss that it may suffer in connection with Carrier’s activities on Shipper’s property. At
all times during the Term and any Renewal Terms Shipper shall perform its obligations hereunder in conformance with all applicable laws 
 ARTICLE VI 
 GENERAL PROVISIONS 

6.1 Notice. All notices, requests or consents (“Notice”) required or permitted to be given hereunder shall
be in writing and delivered by hand or by telecopier, or sent, postage prepaid, by registered, certified or express mail, or reputable overnight courier service and shall be deemed given when so delivered by hand, telecopy, or if mailed, three
(3) days after mailing (on the day of delivery in the case of express mail or overnight courier service) as follows: 
 If
to Carrier: 
 Plains Pipeline, L.P. 

333 Clay Street, Suite 1600 

Houston, Texas 77002 
 Fax: (713) 646-4306 
 Attention: Allen Hebert, Director
— Business Development 
 With a copy to: 

Plains Pipeline, L. P. 
 333 Clay Street, Suite 1600 
 Houston, Texas 77002 

Fax: (713) 646-4216 
 Attention: Lawrence J. Dreyfuss, Associate General Counsel 
 If to Shipper:

 Coffeyville Resources Refining & Marketing, LLC 

PO Box 1566 
 Coffeyville, Kansas 67337 
 Fax: 212-832-4270 

Attention: Philip Rinaldi, Chief Executive Officer 

Any Party may change the address to which such communications are to be directed to it by giving written notice to the other in the
manner set forth above. 
 6.2 Governing Law and Jurisdiction. This Agreement shall be governed by and construed,
interpreted and enforced in accordance with the laws of the State of Texas, without giving effect to any of the conflicts of laws provisions thereof that would require the application of the substantive laws of any other jurisdiction. The Parties,
irrevocably and unconditionally (a) agree that any suit, action or other legal proceeding (collectively, “Suit”) arising out of this Agreement shall be brought and adjudicated in the United States District Court in Harris
County, Texas, or, if such court will not accept jurisdiction, in any 

  
 6 

 court of competent civil jurisdiction sitting in Harris County, Texas, (b) submits to the
non-exclusive jurisdiction of any such court for the purposes of any such Suit and (c) waives and agrees not to assert by way of motion, as a defense or otherwise in any such Suit, any claim that such Party is not subject to the jurisdiction of
the above courts, that such Suit is brought in an inconvenient forum or that the venue of such Suit is improper. 
 6.3
Right to Cure. In case of a breach of this Agreement by either Party, the non-breaching Party shall give the breaching party notice of the breach and a reasonable period to cure under the circumstances. 

6.4 Headings. The headings used throughout this Agreement are for reference purposes only and shall not affect in any way
the meaning or interpretation of this Agreement. 
 6.5 Assignment. This Agreement and all of the provisions
hereof shall be binding upon and inure to the benefit of the Parties and their respective successors and permitted assigns, but except as provided below, neither this Agreement nor any of the rights, interests or obligations hereunder shall be
assigned by either Party without the prior written consent of the other Party, which consent shall not be unreasonably withheld or delayed or conditioned; provided that the creditworthiness of such assignee is not materially weaker than the
creditworthiness of the Party making the assignment, and any such other assignment that is not consented to shall be null and void; provided further that a Party may assign this Agreement upon notice to the other Party to (a) an Affiliate of
that Party, or (b) a Person or entity who (i) purchases all or substantially all of the assets of such Party, or (ii) merges, consolidates or reorganizes with that Party, and (c) Shipper shall have the right to assign this
Agreement to its lenders for collateral security purposes, and Carrier agrees to co-operate with any such lenders in connection with executing a customary consent to contractual assignment for such purposes; provided further that any assignment
under clause (a), (b) or (c) shall not release, affect or reduce in any way the assigning Party’s obligations under this Agreement if such assignment occurs during the First Period, unless the creditworthiness of the transferee is not
materially weaker than the creditworthiness of the assignor, approval of which assignee shall not be unreasonably withheld or delayed by the non-assigning Party. It is understood and agreed that such creditworthiness of an assignee in the case of
assignment by Shipper shall be measured against the remaining value of the Volume Commitment for the duration of the First Period. Nothing in this Agreement, express or implied, is intended to confer upon any Person or entity other than the Parties
and their respective permitted successors and assigns, any rights, benefits or obligations hereunder. 
 6.6 No Third
Party Beneficiaries. This Agreement is solely for the benefit of the Parties and their respective successors and permitted assigns, and this Agreement shall not otherwise be deemed to confer upon or give to any other third party, including
without limitation any creditor, any remedy, claim, liability, reimbursement, cause of action or other right. 
 6. 7
Severability. If any provision of this Agreement is held to be illegal, invalid or unenforceable under any present or future Law, and if the rights or obligations of any Party under this Agreement will not be materially and adversely
affected thereby, (a) such provision will be fully severable, (b) this Agreement will be construed and enforced as if such illegal, invalid or unenforceable provision had never comprised a part hereof, (c) the remaining provisions of
this Agreement will remain in full force and effect and will not be affected by the illegal, invalid or unenforceable provision or by its severance herefrom and (d) in lieu of such illegal, invalid or unenforceable provision, there will be
added automatically as a part of this Agreement a legal, valid and enforceable provision as similar in terms to such illegal, invalid or unenforceable provision as may be possible. 

6.8 Time of the Essence. Time and full performance hereunder by the Parties are of the essence under this Agreement.

 6.9 Entire Agreement. This Agreement together with the tariffs to be filed with FERC referenced herein
constitute the entire agreement and understanding of the Parties with respect to the subject matter thereof, and supersedes all other prior and contemporaneous agreements, whether written or oral, between the Parties. This Agreement may not be
modified or amended except by an instrument signed by both Parties. 
 [Next Page is Signature Page] 

  
 7 

 IN WITNESS WHEREOF, the Parties have executed this Agreement as of the date first above
written. 
  

			
	 PLAINS PIPELINE, L.P.

	By Plains Marketing GP Inc., Its General Partner
		
	By:	 	 /s/ Harry N. Pefanis

		 	Harry N. Pefanis
		 	President and Chief Operating Officer
	
	 COFFEYVILLE RESOURCES REFINING
 & MARKETING, LLC

		
	By:	 	 /s/ Philip L. Rinaldi

		 	Philip L. Rinaldi
		 	Chief Executive Officer

  
 8

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00210-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00210-of-00352.parquet"}]]