Document:

EX-10.78

 Exhibit 10.78 
 EXECUTION VERSION 
 AMENDMENT NUMBER FIVE 

to the 
 MASTER
REPURCHASE AGREEMENT 
 Dated as of May 24, 2012, 
 among 
 PENNYMAC CORP., 

PENNYMAC LOAN SERVICES, LLC 
 and 
 CITIBANK, N.A. 

This AMENDMENT NUMBER FIVE (this “Amendment Number Five”) is made this 25th day of June, 2013 (the “Effective Date”), among
PENNYMAC CORP. (“Seller”), PENNYMAC LOAN SERVICES, LLC (“Servicer”) and CITIBANK, N.A. (“Buyer”), to the Master Repurchase Agreement, dated as of May 24, 2012, among Seller, Servicer and Buyer,
as such agreement may be amended from time to time (the “Agreement”). Capitalized terms used but not otherwise defined herein shall have the meanings assigned to such terms in the Agreement. 

RECITALS 

WHEREAS, Seller and Buyer have agreed to extend the term of the Agreement, provide for an additional commitment fee, and to modify
certain definitions, as more specifically set forth herein; and 
 WHEREAS, as of the date hereof, Seller represents to Buyer
that the Seller Parties are in full compliance with all of the terms and conditions of the Agreement and each other Program Document and no Default or Event of Default has occurred and is continuing under the Agreement or any other Program Document.

 NOW THEREFORE, for good and valuable consideration, the receipt and sufficiency of which are hereby acknowledged, and for the
mutual covenants herein contained, the parties hereto hereby agree as follows: 
 SECTION 1. Amendment. Effective as
the Effective Date, the Agreement is hereby amended as follows: 
 (a) Section 2 of the Agreement is hereby amended by
adding the new definition of “2013 Additional Commitment Fee” in the appropriate alphabetical order to read as follows: 
 “2013 Additional Commitment Fee” shall have the meaning assigned to it in the Pricing Side Letter. 
 (b) Section 2 of the Agreement is hereby amended by deleting the definition of “Termination Date” in its entirety and replacing it with the following: 

“Termination Date” shall mean July 25, 2013 or such earlier date on which this Agreement shall terminate in
accordance with the provisions hereof or by operation of law. 
 SECTION 2. Fees and Expenses. Seller agrees to pay
to Buyer all reasonable out of pocket costs and expenses incurred by Buyer in connection with this Amendment Number Five (including any Commitment Fee due an payable, all reasonable fees and out of pocket costs and expenses of the Buyer’s legal
counsel) in accordance with Sections 23 and 25 of the Agreement. 
 SECTION 3. Representations. Seller hereby
represents to Buyer that as of the date hereof, Seller is in full compliance with all of the terms and conditions of the Agreement and each other Program Document and no Default or Event of Default has occurred and is continuing under the Agreement
or any other Program Document. 

 SECTION 4. Binding Effect; Governing Law. This Amendment Number Five shall be
binding and inure to the benefit of the parties hereto and their respective successors and permitted assigns. THIS AMENDMENT NUMBER FIVE SHALL BE CONSTRUED IN ACCORDANCE WITH, AND GOVERNED BY, THE LAWS OF THE STATE OF NEW YORK, WITHOUT GIVING EFFECT
TO THE CONFLICT OF LAWS PRINCIPLES THEREOF (EXCEPT FOR SECTION 5-1401 OF THE NEW YORK GENERAL OBLIGATIONS LAW). 

SECTION 5. Counterparts. This Amendment Number Five may be executed by each of the parties hereto on any number of separate
counterparts, each of which shall be an original and all of which taken together shall constitute one and the same instrument. 

SECTION 6. Limited Effect. Except as amended hereby, the Agreement shall continue in full force and effect in accordance with
its terms. Reference to this Amendment Number Five need not be made in the Agreement or any other instrument or document executed in connection therewith, or in any certificate, letter or communication issued or made pursuant to, or with respect to,
the Agreement, any reference in any of such items to the Agreement being sufficient to refer to the Agreement as amended hereby. 

[Signature Page Follows] 

  
 2 

 IN WITNESS WHEREOF, Seller, Servicer and Buyer have caused this Amendment Number Five to be
executed and delivered by their duly authorized officers as of the day and year first above written. 
  

			
	PENNYMAC CORP.
	(Seller)
		
	By:	 	 /s/ Pamela Marsh

	Name:	 	Pamela Marsh
	Title:	 	Managing Director, Treasurer
	
	PENNYMAC LOAN SERVICES, LLC,
	(Servicer)
		
	By:	 	 /s/ Pamela Marsh

	Name:	 	Pamela Marsh
	Title:	 	Vice President, Treasurer
	
	CITIBANK, N.A.
	(Buyer)
		
	By:	 	 /s/ Peter D. Steinmetz

	Name:	 	Peter D. Steinmetz
	Title:	 	Vice President, Citibank, N.A.

 Amendment Number Five to Master Repurchase Agreement (PMAC Agency)EX-10.81

 Exhibit 10.81 
 AMENDMENT NO. 1 TO 
 PENNYMAC MASTER REPURCHASE AGREEMENT

 This Amendment No. 1 (this “Amendment”), dated as of February 1, 2013, amends that certain Master
Repurchase Agreement, dated as of July 2, 2012 (the “Repurchase Agreement”), among PennyMac Corp. (“PennyMac”), as seller, PennyMac Loan Services, LLC, as servicer, PennyMac Mortgage Investment Trust, as guarantor, and
Barclays Bank PLC, as purchaser and agent (“Barclays”). Capitalized terms used herein but not otherwise defined shall have the meanings given to such terms in the Repurchase Agreement. 

WHEREAS, pursuant to Section 28 of the Repurchase Agreement, the parties hereto desire to amend the Repurchase Agreement as
described below; and 
 WHEREAS, this Amendment is not effective until the execution and delivery of this Amendment by PennyMac
and Barclays. 
 NOW, THEREFORE, pursuant to the provisions of the Repurchase Agreement concerning modification and amendment
thereof, and in consideration of the amendments, agreements and other provisions herein contained and of certain other good and valuable consideration the receipt and sufficiency of which is hereby acknowledged by the parties hereto, it is hereby
agreed between PennyMac and Barclays as follows: 
 Section 1. Amendment. 

(a) Section 1 of the Repurchase Agreement is hereby amended by deleting the defined terms “Total Non-New Origination Warehouse
Equity,” “Total Assets” and “Total New Origination Warehouse Liabilities.” 
 (b) Section 1 of the
Repurchase Agreement is hereby amended by deleting the defined term “Total Non-New Origination Warehouse Liabilities” and replacing it with the following: 
 “Total Non-New Origination Warehouse Liabilities” means all Indebtedness of any kind other than Indebtedness in respect of repurchase facilities or other warehouse financings of Newly
Originated Mortgage Loans, or any inter-company indebtedness that is eliminated in consolidation on the Guarantor’s financial statements. 
 (c) Section 14(g)(ii)(D)(1) of the Repurchase Agreement is hereby amended by replacing such clause with the following: 
 (1) Seller’s ratio (as of each month-end) of (a) Total Non-New Origination Warehouse Liabilities to (b) Adjusted Tangible Net Worth shall not exceed 3:1; 

Section 2. Effective Date. This Amendment shall be effective as of January 31, 2013. 

  
 1 

 Section 3. Effect of Amendment. Except as expressly amended and modified
by this Amendment, all provisions of the Repurchase Agreement shall remain in full force and effect and all such provisions shall apply equally to the terms and conditions set forth herein. After this Amendment becomes effective, all references in
the Agreement (or in any other document relating to the Mortgage Loans) to “this Agreement,” “hereof,” “herein” or words of similar effect referring to such Agreement shall be deemed to be references to such Agreement
as amended by this Amendment. This Amendment shall not be deemed to expressly or impliedly waive, amend or supplement any provision of the Repurchase Agreement other than as set forth herein. 

Section 4. Successors and Assigns. This Amendment shall be binding upon the parties hereto and their respective
successors and assigns. 
 Section 5. Section Headings. The various headings and sub-headings of this
Amendment are inserted for convenience only and shall not affect the meaning or interpretation of this Amendment or the Repurchase Agreement or any provision hereof or thereof. 

Section 6. GOVERNING LAW. THIS AMENDMENT SHALL BE CONSTRUED IN ACCORDANCE WITH THE LAWS OF THE STATE OF NEW YORK,
WITHOUT REFERENCE TO ITS CONFLICT OF LAW PROVISIONS EXCEPT SECTIONS 5-1401 AND 5-1402 OF NEW YORK GENERAL OBLIGATIONS LAW, AND THE OBLIGATIONS, RIGHTS AND REMEDIES OF THE PARTIES HEREUNDER SHALL BE DETERMINED IN ACCORDANCE WITH SUCH LAWS.

 Section 7. Counterparts. This Amendment may be executed in one or more counterparts and by the different
parties hereto on separate counterparts, including without limitation counterparts transmitted by facsimile, each of which, when so executed, shall be deemed to be an original and such counterparts, together, shall constitute one and the same
agreement. 

  
 2 

 IN WITNESS WHEREOF, each undersigned party has caused this Amendment No. 1 to the
Master Repurchase Agreement to be duly executed by one of its officers thereunto duly authorized as of the date and year first above written. 
  

			
	PENNYMAC MORTGAGE CORP., as Seller
		
	By:	 	 /s/ Pamela Marsh

	Name:	 	Pamela Marsh
	Title:	 	Managing Director, Treasurer
	
	BARCLAYS BANK PLC, as Purchaser and Agent
		
	By:	 	 /s/ Ellen V. Kiernan

	Name:	 	Ellen V. Kiernan
	Title:	 	DirectorEX-10.82

 Exhibit 10.82 
 AMENDMENT NO. 2 TO 
 PENNYMAC MASTER REPURCHASE AGREEMENT 

This Amendment No. 2 (this “Amendment”), dated as of June 28, 2013, amends that certain Master Repurchase Agreement,
dated as of July 2, 2012, as amended by Amendment No. 1, dated as of February 1, 2013 (the “Repurchase Agreement”), among PennyMac Corp. (“PennyMac”), as seller, PennyMac Loan Services, LLC, as servicer, PennyMac
Mortgage Investment Trust, as guarantor, and Barclays Bank PLC, as purchaser and agent (“Barclays”). Capitalized terms used herein but not otherwise defined shall have the meanings given to such terms in the Repurchase Agreement.

 WHEREAS, pursuant to Section 28 of the Repurchase Agreement, the parties hereto desire to amend the Repurchase Agreement
as described below; and 
 WHEREAS, this Amendment is not effective until the execution and delivery of this Amendment by
PennyMac and Barclays and receipt by Barclays of the Fee set forth in Section 2 of this Amendment. 
 NOW, THEREFORE,
pursuant to the provisions of the Repurchase Agreement concerning modification and amendment thereof, and in consideration of the amendments, agreements and other provisions herein contained and of certain other good and valuable consideration the
receipt and sufficiency of which is hereby acknowledged by the parties hereto, it is hereby agreed between PennyMac and Barclays as follows: 
 Section 1. Amendment. 
 (a) Section 2 of the Repurchase
Agreement is hereby amended by deleting the defined term “Maturity Date” and replacing it with the following: 

“Maturity Date” means September 1, 2013. 
 Section 2. Fee. In connection with this Amendment and amendments to other Program Documents entered into by Seller and Purchaser on the date hereof, Seller agrees to pay Purchaser a
fully-earned, non-refundable fee of $133,333.33 (the “Fee”). The Fee shall be deemed earned by and payable to Purchaser on the date of this Amendment. The Fee shall be paid by wire transfer of immediately available funds to the following
account: 
 Bank Name: Bank of New York Mellon 

Address: New York, NY 

	 	ABA:	021-000-018 

	 	DDA:	GLA 111569 WV1 

	 	Name:	BBPLC NY Branch Whole Loans Warehouse 

	 	Ref:	PennyMac repo 

Attention:         Whole Loan Operations 

Phone Validation: 
 201-499-2841 — John Whitacre 
 201-499-2139 — Roberto
Wang 

  
 1 

 Section 3. Effect of Amendment. Except as expressly amended and modified
by this Amendment, all provisions of the Repurchase Agreement shall remain in full force and effect and all such provisions shall apply equally to the terms and conditions set forth herein. After this Amendment becomes effective, all references in
the Agreement (or in any other document relating to the Mortgage Loans) to “this Agreement,” “hereof,” “herein” or words of similar effect referring to such Agreement shall be deemed to be references to such Agreement
as amended by this Amendment. This Amendment shall not be deemed to expressly or impliedly waive, amend or supplement any provision of the Repurchase Agreement other than as set forth herein. 

Section 4. Successors and Assigns. This Amendment shall be binding upon the parties hereto and their respective
successors and assigns. 
 Section 5. Section Headings. The various headings and sub-headings of this
Amendment are inserted for convenience only and shall not affect the meaning or interpretation of this Amendment or the Repurchase Agreement or any provision hereof or thereof. 

Section 6. GOVERNING LAW. THIS AMENDMENT SHALL BE CONSTRUED IN ACCORDANCE WITH THE LAWS OF THE STATE OF NEW YORK,
WITHOUT REFERENCE TO ITS CONFLICT OF LAW PROVISIONS EXCEPT SECTIONS 5-1401 AND 5-1402 OF NEW YORK GENERAL OBLIGATIONS LAW, AND THE OBLIGATIONS, RIGHTS AND REMEDIES OF THE PARTIES HEREUNDER SHALL BE DETERMINED IN ACCORDANCE WITH SUCH LAWS.

 Section 7. Counterparts. This Amendment may be executed in one or more counterparts and by the different
parties hereto on separate counterparts, including without limitation counterparts transmitted by facsimile, each of which, when so executed, shall be deemed to be an original and such counterparts, together, shall constitute one and the same
agreement. 

  
 2 

 IN WITNESS WHEREOF, each undersigned party has caused this Amendment No. 2 to the
Master Repurchase Agreement to be duly executed by one of its officers thereunto duly authorized as of the date and year first above written. 
  

			
	PENNYMAC MORTGAGE CORP., as Seller
		
	By:	 	 /s/ Pamela Marsh

	Name:	 	Pamela Marsh
	Title:	 	Managing Director, Treasurer
	
	BARCLAYS BANK PLC, as Purchaser and Agent
		
	By:	 	 /s/ Ellen V. Kiernan

	Name:	 	Ellen V. Kiernan
	Title:	 	Director

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