Document:

EX-10.30.4

 Exhibit 10.30.4 

EXECUTION VERSION 
  

 
 AMENDMENT NUMBER FOUR 

to the 
 Amended and Restated
Mortgage Loan Participation Purchase and Sale Agreement 
 dated as of July 17, 2015 

between 
 BANK OF AMERICA, N.A. 

and 
 LOANDEPOT.COM, LLC 

This AMENDMENT NUMBER FOUR (this “Amendment”) is made as of the 14th day
of July, 2017 (the “Effective Date”), by and between Bank of America, N.A. (“Purchaser”) and loanDepot.com, LLC (“Seller”) to the Amended and Restated Mortgage Loan Participation Purchase and Sale
Agreement, dated as of July 17, 2015 (as amended, restated, supplemented or otherwise modified from time to time, the “Agreement”), between Purchaser and Seller. 

WHEREAS, Seller has requested and Purchaser agrees to amend the Agreement as more specifically set forth herein; and 

WHEREAS, as of the Effective Date, Seller represents to Purchaser that it is in compliance with all of the representations and warranties and
all of the affirmative and negative covenants set forth in the Agreement and is not in default under the Agreement. 
 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. Amendments. Effective as of the Effective Date, the Agreement is hereby amended as follows: 

(a) Section 1 of the Agreement is hereby modified by deleting the definitions of “Aggregate Transaction Limit”,
“Effective Date”, “Expiration Date”, “Facility Fee”, “Mortgage”, “Mortgaged Property” and “S&P” in their respective entireties and replacing them with the following (with the modified
text underlined for review purposes): 
 “Aggregate Transaction Limit”: The sum of (x) $25,000,000 plus (y) the
amount of any Temporary Increase agreed to by Purchaser for so long as such Temporary Increase is in effect. 
 “Effective
Date”: July 14, 2017. 
 “Expiration Date”: The earlier of (i) July 13, 2018, (ii) at
Purchaser’s option, upon the occurrence of an Event of Default, and (iii) the date on which this Agreement shall terminate in accordance with the provisions hereof or by operation of law. 

“Facility Fee”: The greater of (i) [***] and (ii) the product of [***] basis points [***] and the Aggregate Transaction
Limit which shall be due on the Effective Date. 

 “Mortgage”: A first-lien or second-lien mortgage, deed of trust,
security deed or similar instrument, on either (i) with respect to a Mortgage Loan other than a Cooperative Loan, improved real property or (ii) with respect to a Cooperative Loan, the Proprietary
Lease and related Cooperative Shares. 
 “Mortgaged Property”: The real property or other Cooperative Loan
collateral securing repayment of the debt evidenced by a Mortgage Note. 
 “S&P”: S&P Global Ratings, a
division of S&P Global Inc., and any successor thereto. 
 (b) Section 1 of the Agreement is hereby amended
by inserting the following new definitions in the appropriate alphabetical order: 
 “Anti-Money Laundering Laws”: As
defined in Section 9(a)(xii). 
 “Cooperative Corporation”: With respect to any Cooperative Loan,
the cooperative apartment corporation that holds legal title to the related Cooperative Project and grants occupancy rights to units therein to stockholders through Proprietary Leases or similar arrangements. 

“Cooperative Loan”: A mortgage loan that is secured by a first lien on and perfected security interest in Cooperative Shares
and the related Proprietary Lease granting exclusive rights to occupy the related Cooperative Unit in the building owned by the related Cooperative Corporation. 

“Cooperative Project”: With respect to any Cooperative Loan, all real property and improvements thereto and rights therein and
thereto owned by a Cooperative Corporation including without limitation the land, separate dwelling units and all common elements. 

“Cooperative Shares”: With respect to any Cooperative Loan, the shares of stock issued by a Cooperative Corporation and
allocated to a Cooperative Unit and represented by a Stock Certificate. 
 “Cooperative Unit”: With respect to a Cooperative
Loan, a specific unit in a Cooperative Project. 
 “Proprietary Lease”: The lease on a Cooperative Unit evidencing the
possessory interest of the owner of the Cooperative Shares in such Cooperative Unit. 
 “Sanctions”: As defined in
Section 9(a)(xi). 
 “Stock Certificate”: With respect to a Cooperative Loan, the certificates
evidencing ownership of the Cooperative Shares issued by the Cooperative Corporation. 
 (c) Section 6(e) of the
Agreement is hereby amended by adding the following paragraph immediately following paragraph (xiv) thereof: 

 With respect to any Event of Default which requires a determination to be made as to whether
such Event of Default has occurred, such determination shall be made in Purchaser’s discretion and Seller hereby agrees to be bound by and comply with any such determination by Purchaser. An Event of Default shall be deemed to be continuing
unless expressly waived by Purchaser in writing. 
 (d) Section 9(a) of the Agreement is hereby amended by deleting
the word “and” appearing at the end of paragraph (ix) thereof, replacing the period appearing at the end of paragraph (x) thereof with “; and” and adding the following new paragraphs (xi) and (xii) at the end
thereof: 
  

	 	(xi)	 Neither Seller nor any of its Affiliates, officers, directors, partners or members, (i) is an entity or
person (or to the Seller’s knowledge, owned or controlled by an entity or person) that (A) is currently the subject of any economic sanctions administered or imposed by the Office of Foreign Assets Control of the U.S. Department of the
Treasury, the U.S. Department of State, the United Nations Security Council, the European Union, Her Majesty’s Treasury or any other relevant authority (collectively, “Sanctions”) or (B) resides, is organized or chartered, or has
a place of business in a country or territory that is currently the subject of Sanctions or (ii) is engaging or will engage in any dealings or transactions prohibited by Sanctions or will directly or indirectly use the proceeds of any
transactions contemplated hereunder, or lend, contribute or otherwise make available such proceeds to or for the benefit of any person or entity, for the purpose of financing or supporting, directly or indirectly, the activities of any person or
entity that is currently the subject of Sanctions; and 

  

	 	(xii)	 Seller has complied with all applicable anti-money laundering laws and regulations, including, without
limitation, the USA Patriot Act of 2001, as amended, and the Bank Secrecy Act of 1970, as amended (collectively, the “Anti Money Laundering Laws”); Seller has established an anti-money laundering compliance program as required by the
Anti-Money Laundering Laws, has conducted the requisite due diligence in connection with the origination of each Related Mortgage Loan for purposes of the Anti-Money Laundering Laws, including with respect to the bona fide identity of the applicable
Mortgagor and the origin of the assets used by said Mortgagor to purchase the property in question, and maintains, and will maintain, sufficient information to identify the applicable Mortgagor for purposes of the Anti-Money Laundering Laws.

 (e) Section 10(j) of the Agreement is hereby amended by deleting it in its entirety and replacing
it with the following (modified text underlined for review purposes): 
  

	 	(j)	 Seller’s Tangible Net Worth shall not be less than [***]. The ratio of Seller’s Total Liabilities to
Tangible Net Worth shall not at any time be greater than [***]. Seller’s Liquidity shall not at any time be less than [***]. Seller shall at all times report positive pre-tax Net Income, on a quarterly
basis. 

 (f) Section 11 of the Agreement is hereby amended by deleting paragraph (g) thereof
in its entirety. 
 (g) Section 29 of the Agreement is hereby amended by deleting it in its entirety and replacing it
with the following (modified text underlined for review purposes): 

 Section 29. Amendment and Restatement. Purchaser and Seller entered into the
Original Agreement. Purchaser and Seller desire to enter into this Agreement in order to amend and restate the Original Agreement in its entirety. The amendment and restatement of the Original Agreement shall become effective on the Effective
Date, and each of Purchaser and Seller shall hereafter be bound by the terms and conditions of this Agreement and the other Program Documents. This Agreement amends and restates the terms and conditions of the Original Agreement, and is
not a novation of any of the agreements or obligations incurred pursuant to the terms of the Original Agreement. Accordingly, all of the agreements and obligations incurred pursuant to the terms of the Original Agreement are hereby ratified and
affirmed by the parties hereto and remain in full force and effect.    For the avoidance of doubt, it is the intent of Purchaser and Seller that the security interests and liens granted in the Collateral pursuant to
Section 8(c) of the Original Agreement shall continue in full force and effect. All references to the Original Agreement in any Program Document or other document or instrument delivered in connection therewith shall be deemed to
refer to this Agreement and the provisions hereof 
 SECTION 2. Condition Precedent. As a condition precedent to the
effectiveness of this Amendment, Seller shall remit to Purchaser a facility fee attributable to the renewal of the Agreement (the “Renewal Facility Fee”), in accordance with Section 2(g) of the Agreement.
The Renewal Facility Fee shall be deemed due, earned and payable in full on the date hereof. Upon early termination of the Agreement, no portion of the Renewal Facility Fee will be refunded to Seller. 

SECTION 3. Fees and Expenses. The Seller agrees to pay to Purchaser all fees and out of pocket expenses incurred by Purchaser in
connection with this Amendment, including all reasonable fees and out of pocket costs and expenses of the legal counsel Purchaser incurred in connection with this Amendment, in accordance with Section 22(a) of the
Agreement. 
 SECTION 4. Defined Terms. Any terms capitalized but not otherwise defined herein should have the respective meanings
set forth in the Agreement. 
 SECTION 5. Limited Effect. Except as amended hereby, the Agreement shall continue in full force and
effect in accordance with its terms. Reference to this Amendment 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. 

SECTION 6. Representations. In order to induce Purchaser to execute and deliver this Amendment, Seller hereby represents to Purchaser
that as of the date hereof (i) Seller is in full compliance with all of the terms and conditions of the Program Documents and remains bound by the terms thereof, and (ii) no Potential Default or Event of Default or servicing termination
event (as described in Section 6(f) of the Agreement) has occurred and is continuing under the Program Documents. 

SECTION 7. Governing Law. This Amendment shall be construed in accordance with the laws of the State of New York without regard to any
conflicts of law provisions (except for Section 5-1401 of the New York General Obligations Law) and the obligations, rights and remedies of the parties hereunder shall be determined in accordance with the
laws of the State of New York, except to the extent preempted by federal law. 
 SECTION 8. Severability. Each provision and
agreement herein shall be treated as separate and independent from any other provision or agreement herein and shall be enforceable notwithstanding the unenforceability of any such other provision or agreement. 

 SECTION 9. Counterparts. For the purpose of facilitating the execution of this
Amendment, and for other purposes, this Amendment may be executed simultaneously in any number of counterparts. Each counterpart shall be deemed to be an original, and all such counterparts shall constitute one and the same instrument. The parties
intend that faxed signatures and electronically imaged signatures such as .pdf files shall constitute original signatures and are binding on all parties. The original documents shall be promptly delivered, if requested. 

[REMAINDER OF THIS PAGE LEFT INTENTIONALLY BLANK] 

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

									
	 BANK OF AMERICA, N.A.,
 as
Purchaser
	 		  	 LOANDEPOT.COM, LLC,
 as
Seller

									
					
	By:	 	  
	 		  	By:	  	  

									
	Name:	 		 		  	Name:	  	
	Title:	 		 		  	Title:	  	

 [Amendment No. 4 to Amended and Restated Purchase and Sale Agreement (BANA/loanDepot)]EX-10.30.5

 Exhibit 10.30.5 

EXECUTION VERSION 
  

 
 AMENDMENT NUMBER FIVE 

to the 
 Amended and Restated
Mortgage Loan Participation Purchase and Sale Agreement 
 dated as of July 17, 2015 

between 
 BANK OF AMERICA, N.A. 

and 
 LOANDEPOT.COM, LLC 

THIS AMENDMENT NUMBER FIVE (this “Amendment”) is made as of the 12th day
of March, 2018 (the “Effective Date”), by and between Bank of America, N.A. (“Purchaser”) and loanDepot.com, LLC (“Seller”) to the Amended and Restated Mortgage Loan Participation Purchase and Sale
Agreement, dated as of July 17, 2015 (as amended, restated, supplemented or otherwise modified from time to time, the “Agreement”), between Purchaser and Seller. 

WHEREAS, Seller has requested and Purchaser agrees to amend the Agreement as more specifically set forth herein; and 

WHEREAS, as of the Effective Date, Seller represents to Purchaser that, after giving effect to this Amendment, it is in compliance with all of
the representations and warranties and all of the affirmative and negative covenants set forth in the Agreement and is not in default under the Agreement. 

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. Amendments. Effective as of the Effective Date, the
Agreement is hereby amended as follows: 
 (a) Section 1 of the Agreement is hereby amended by inserting the
following new definitions in the appropriate alphabetical order: 
 “Change of Control”: The occurrence of any of the
following: 
 (a) any event or series of events by which any “person” or “group” (as such terms are used in Sections
13(d) and 14(d) of the Securities Exchange Act of 1934, as amended (the “Exchange Act”), but excluding any employee benefit plan of such person or its Subsidiaries, and any person or entity acting in its capacity as trustee, agent
or other fiduciary or administrator of any such plan), other than the Equity Investors, LD Holdings and LD Intermediate, becomes the “beneficial owner” (as defined in Rules 13d-3 and 13d-5 under the Exchange Act), directly or indirectly, of 51% or more of the equity securities of Seller entitled to vote for members of the board of directors or equivalent governing body of Seller on a
fully-diluted basis; 
 (b) the sale or disposition of all or substantially all of Seller’s assets (or consummation of any transaction,
or series of related transactions, having similar effect); 
 (c) the dissolution or liquidation of Seller; or 

 

 (d) any transaction or series of related transactions that has the substantial effect of any
one or more of the foregoing. 
 “Equity Investors”: The holders of the equity interests in Seller immediately prior to the
Restructuring Transactions, and their respective Family Members and Family Trusts. 
 “Family Member”: With respect to any
individual, any other individual having a relationship by blood, marriage, or adoption to such individual. 
 “Family
Trust”: With respect to any individual, any trust or other estate planning vehicle established for the benefit of such individual or Family Members of such individual. 

“IPO”: The initial public offering of shares of LD Holdings or any of its Subsidiaries and any transactions related thereto.

 “LD Holdings”: LD Holdings Group LLC, a Delaware limited liability company. 

“LD Intermediate”: LD Intermediate, LLC, a Delaware limited liability company. 

“LD Investment Holdings”: LD Investment Holdings, Inc., a Delaware corporation. 

“Parent Change of Control”: The occurrence of any of the following with respect to LD Holdings: 

(a) any event or series of events by which any “person” or “group” (as such terms are used in Sections 13(d) and 14(d) of
the Securities Exchange Act of 1934, as amended (the “Exchange Act”), but excluding any employee benefit plan of such person or its Subsidiaries, and any person or entity acting in its capacity as trustee, agent or other fiduciary
or administrator of any such plan) other than the Parent Equity Investors as of the date hereof, becomes the “beneficial owner” (as defined in Rules 13d-3 and
13d-5 under the Exchange Act), directly or indirectly, of 51% or more of the equity securities of LD Holdings entitled to vote for members of the board of directors or equivalent governing body of LD Holdings
on a fully-diluted basis; 
 (b) the sale or disposition of all or substantially all of LD Holding’s assets (or consummation of any
transaction, or series of related transactions, having similar effect); 
 (c) the dissolution or liquidation of LD Holdings; or 

(d) any transaction or series of related transactions that has the substantial effect of any one or more of the foregoing. 

“Parent Equity Investors”: The holders of the equity interests in LD Holdings and LD Intermediate, and their respective Family
Members and Family Trusts. 
 “Restructuring Transactions”: Each of the following transactions undertaken in connection with
an organizational restructure of Seller: (a) the creation of LD Holdings and LD Intermediate, each, a wholly-owned subsidiary of LD Holdings, (b) the assignment to LD Holdings and LD Intermediate of all of the equity of Seller, such that
following such assignment LD Holdings would own not less than 99% of the equity in Seller, and LD Intermediate would own 1% or less of the equity in Seller, and (c) the ownership of all of the equity of LD Holdings by the Parent Equity
Investors. 

  
 - 2 - 

 (b) Section 6(e) of the Agreement is hereby amended by deleting
the word “or” appearing at the end of subsection (xiii) thereof, adding “; or” after subsection (xiv) thereof, and inserting the following new subsection immediately thereafter: 

(xv) a Change of Control shall have occurred with respect to Seller. 

(c) Section 10(a)(iv) of the Agreement is hereby amended by deleting subsections (13) and (14) in
their respective entireties, replacing them with the following, and adding the following new subsection (15) thereafter: 
 (13)
any material change in respect of any secondary marketing, underwriting, third party origination and interest rate risk management practices of Seller. By way of example, but not limitation, any material change to Seller’s hedging strategy or
any change to add a new line of mortgage loan products shall be considered material change; 
 (14) any settlement with, or issuance of a
consent order by, any Governmental Authority, in which the fines, penalties, settlement amounts or any other amounts owed by Seller thereunder exceeds $5,000,000 in the aggregate; and 

(15) the occurrence of a Parent Change of Control. 

(d) Section 10(k) of the Agreement is hereby amended by deleting the section in its entirety and replacing it with
the following: 
 (k) Neither Seller nor any of its Affiliates shall permit or consummate any IPO without the prior written consent of
Purchaser. 
 SECTION 2. Conditions Precedent. As conditions precedent to the effectiveness of this Amendment, Seller hereby agrees
that: 
 (a) Seller shall have delivered to Purchaser a certificate of Seller’s corporate secretary, substantially in
the form of Exhibit C to the Master Repurchase Agreement as to the incumbency and authenticity of the signatures of the officers of Seller executing this Amendment and Amendment No. 6 to the Amended and Restated Master Repurchase Agreement, and
attaching Seller’s certificate of formation and limited liability company agreement amended, as applicable, to address the Restructure Transactions, and a certificate of good standing; and 

(b) The Restructuring Transactions, other than the assignment of equity interests in Seller to LD Intermediate, shall have
occurred. 
 SECTION 3. Fees and Expenses. The Seller agrees to pay to Purchaser all fees and out of pocket expenses incurred by
Purchaser in connection with this Amendment, including all reasonable fees and out of pocket costs and expenses of the legal counsel to Purchaser incurred in connection with this Amendment, in accordance with Section 22(a)
of the Agreement. 
 SECTION 4. Defined Terms. Any terms capitalized but not otherwise defined herein should have the respective
meanings set forth in the Agreement. 

  
 - 3 - 

 SECTION 5. Limited Effect. Except as amended hereby, the Agreement shall continue in
full force and effect in accordance with its terms. Reference to this Amendment 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. 

SECTION 6. Representations. In order to induce Purchaser to execute and deliver this Amendment, Seller hereby represents to Purchaser
that as of the date hereof, after giving effect to this Amendment, (i) Seller is in full compliance with all of the terms and conditions of the Program Documents and remains bound by the terms thereof, and (ii) no Potential Default or
Event of Default or servicing termination event (as described in Section 6(f) of the Agreement) has occurred and is continuing under the Program Documents. 

SECTION 7. Governing Law. This Amendment shall be construed in accordance with the laws of the State of New York without regard to any
conflicts of law provisions (except for Section 5-1401 of the New York General Obligations Law) and the obligations, rights and remedies of the parties hereunder shall be determined in accordance with the
laws of the State of New York, except to the extent preempted by federal law. 
 SECTION 8. Severability. Each provision and
agreement herein shall be treated as separate and independent from any other provision or agreement herein and shall be enforceable notwithstanding the unenforceability of any such other provision or agreement. 

SECTION 9. Counterparts. For the purpose of facilitating the execution of this Amendment, and for other purposes, this Amendment may be
executed simultaneously in any number of counterparts. Each counterpart shall be deemed to be an original, and all such counterparts shall constitute one and the same instrument. The parties intend that faxed signatures and electronically imaged
signatures such as .pdf files shall constitute original signatures and are binding on all parties. The original documents shall be promptly delivered, if requested. 

[REMAINDER OF THIS PAGE LEFT INTENTIONALLY BLANK] 

  
 - 4 - 

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

									
	BANK OF AMERICA, N.A.,	 		  	LOANDEPOT.COM, LLC,
	as Purchaser	 		  	as Seller
					
	By:	 	
                     

	 		  	By:	 	
                     

	Name:	 		 		  	Name:	 	
	Title:	 		 		  	Title:	 	

 Signature Page to Amendment No. 5 to A&R Purchase and Sale Agreement (BANA/loanDepot)

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