Document:

EX-10.21.2

 Exhibit 10.21.2 

CERTAIN IDENTIFIED INFORMATION HAS BEEN EXCLUDED FROM THE EXHIBIT BECAUSE IT 

IS BOTH NOT MATERIAL AND WOULD LIKELY CAUSE COMPETITIVE HARM TO THE 

REGISTRANT IF PUBLICLY DISCLOSED. [***] INDICATES THAT INFORMATION HAS BEEN 

REDACTED 
 EXECUTION
VERSION 
 AMENDMENT NUMBER FOUR 

to the 
 Master Repurchase Agreement

 Dated as of November 21, 2013 

and 
 AMENDMENT NUMBER TWO 

to the 
 Mortgage Loan Participation
Purchase and Sale Agreement 
 Dated as of February 28, 2013 

between 
 JEFFERIES FUNDING LLC
(f/k/a JEFFERIES MORTGAGE FUNDING, LLC) 
 and 

LOANDEPOT.COM, LLC 
 This
AMENDMENT NUMBER FOUR to the Master Repurchase Agreement and AMENDMENT NUMBER TWO to the Mortgage Loan Participation Purchase and Sale Agreement (this “Amendment”) is made as of this
2nd day of November, 2015, by and between Jefferies Funding LLC (f/k/a Jefferies Mortgage Funding, LLC) (“Buyer”) and loanDepot.com, LLC (“Seller”) to
(a) the Master Repurchase Agreement, dated as of November 21, 2013, as amended, supplemented or otherwise modified from time to time (the “Repurchase Agreement”), between Buyer and Seller and (b) the Mortgage Loan
Participation Purchase and Sale Agreement, dated as of February 28, 2013, as amended, supplemented or otherwise modified from time to time (the “Participation Agreement” and together with the Repurchase Agreement, the
“Agreements”), between Buyer and Seller. 
 NOW, THEREFORE, the Buyer and Seller hereby agree, in consideration of the
mutual promises and mutual obligations set forth herein, that the Agreements are hereby amended as follows: 
 Section 1. Amendments
to Repurchase Agreement. Effective as of November 2, 2015 (the “Effective Date”), the Repurchase Agreement is hereby amended as follows: 

(a) Section 2 of the Repurchase Agreement, as amended by Section 4 of Annex I of the Repurchase Agreement, is hereby amended by
adding the following new definitions in appropriate alphabetical order: 
 “Equity Investors” shall mean the holders of the
equity interests in Seller immediately prior to the Restructuring Transactions, and their respective Family Members and Family Trusts. 

“Family Member” shall mean, with respect to any individual, any other individual having a relationship by blood, marriage, or
adoption to such individual. 
 “Family Trust” shall mean, 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” shall mean
the initial public offering of shares of Class A common stock of LD Corp. on the terms and conditions set forth in the S-1 Filing, and the transactions related thereto as set forth in the S-1 Filing. 

 “LD Corp.” shall mean loanDepot, Inc., a Delaware corporation. 

“LD Holdings” shall mean loanDepot Holdings, LLC, a Delaware limited liability company. 

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

“Overhead Costs” means, with respect to LD Corp., LD Holdings or LD Intermediate or any of their respective subsidiaries
(i) customary compensation, fees and expense reimbursements to their respective directors, officers and managers, and (ii) costs and expenses related to (A) compliance with Sarbanes-Oxley and other applicable securities laws
(including, without limitation, the costs of any reporting requirements in connection with such compliance), (B) investor relations, shareholder meetings and shareholder reporting, (C) the acquisition and maintenance of customary directors and
officers insurance, (D) listing fees, (E) corporate overhead costs (including, without limitation, the costs of audits) and costs related to maintenance of corporate existence, and (F) executive, legal and professional fees associated
with the foregoing. 
 “Restructuring Transactions” shall mean the following transactions undertaken in connection with the
IPO: (a) the creation of LD Holdings and LD Intermediate, 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 [***]% of the equity in Seller, and LD Intermediate would own [***]% or less of the equity in Seller, (c) the ownership of all of the equity of LD Holdings by (i) LD Corp., and (ii) certain of the pre-IPO owners of Seller, and (d) the ownership of LD Corp. by certain of the pre-IPO owners of Seller and the investors in the public shares under the IPO. 

“S-1 Filing” shall mean the Form S-1
Registration Statement dated as of October 8, 2015, filed by LD Corp. with the SEC, as amended, restated, supplemented or otherwise modified from time to time prior to the IPO. 

“Total Liabilities” shall mean as of any date of determination, the total liabilities on such date of determination, to be
determined in accordance with GAAP. 
 “Use of IPO Proceeds” shall mean the use of proceeds from the IPO set forth in the
section entitled “Use of Proceeds” in the S-1 Filing. 
 (b) Section 2 of the
Repurchase Agreement, as amended by Section 4 of Annex I of the Repurchase Agreement, is hereby amended by deleting the definitions “Affiliate”, “Change of Control”, and “Maximum Aggregate Purchase
Price” in their respective entirety and replacing them with the following new definitions: 
 “Affiliate” shall
mean, with respect to any Person, any other Person which, directly or indirectly, controls, is controlled by, or is under common control with, such Person. For purposes of this definition, “control” (together with the correlative meanings
of “controlled by” and “under common control with”) means possession, directly or indirectly, of the power (a) to vote [***]% or more of the securities (on a fully diluted basis) having ordinary voting power for the
directors or managing general partners (or their equivalent) of such Person, or (b) to direct or cause the direction of the management or policies of such Person, 

  
 - 2 - 

 
whether through the ownership of voting securities, by contract, or otherwise; provided, however, that, with respect to the Seller, the term “Affiliate” shall not include any Person
holding publicly-traded shares in LD Corp. (or any Person which controls, is controlled by or is under common control with, such Person holding publicly-traded shares in LD Corp.) unless such Person would qualify as an Affiliate without taking into
account its ownership of any publicly-traded shares in LD Corp. 
 “Change of Control” shall mean 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 1934 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 Corp., LD Holdings and LD Intermediate, becomes the “beneficial owner” (as defined in Rules 13d-3 and 13d-5 under the 1934 Act), directly or indirectly, of [***]% 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. 
 “Maximum Aggregate Purchase Price” shall mean $[***] 

or such other amount as may, from time to time, be mutually agreed to by Buyer and Seller in writing (which shall include e-mail transmission). 
 (c) Section 11(a)(xv) of the Repurchase Agreement is hereby amended by
deleting the words “or Buyer”. 
 (d) Section 22(e)(iii) of the Repurchase Agreement is hereby amended by deleting the
reference to “sixty (60) days” and replacing it with “ninety (90) days)”. 
 (e) Section 22(e) of the
Repurchase Agreement is hereby amended by deleting subclause (vii) in its entirety and replacing it with the following new subclause: 
  

	 	vii.	 Seller shall furnish to Buyer, at the time it furnishes each set of financial statements pursuant to paragraphs
(i), (ii) and (iii) above, a certificate of a Responsible Officer of Seller substantially in the form of Annex III hereto, or such other form acceptable to Buyer, to the effect that, to the best of such Responsible Officer’s knowledge,
Seller during such period has observed or performed all of its covenants and other agreements, and satisfied every condition, contained in this Agreement and the other Program Documents to be observed, performed or satisfied by it, and that such
Responsible Officer has obtained no knowledge of any Default or Event of Default except as specified in such certificate (and, if any Default or Event of Default has occurred and is continuing, describing the same in reasonable detail and describing
the action Seller has taken or proposes to take with respect thereto). 

 (f) Upon consummation of the IPO, Section 22
of the Repurchase Agreement is hereby amended by deleting Subsections (i), (j), (k) and (l) in their respective entirety and replacing them with the following new Subsections: 

 

	 	(i)	 Minimum Tangible Net Worth. Seller shall at all times maintain a Tangible Net Worth of not less than
$[***] 

  

	 	(j)	 Minimum Liquidity. Seller shall at all times maintain Liquidity in an amount greater than or equal to
$[***]. 

  
 - 3 - 

	 	(k)	 Maximum Leverage. Seller shall at all times maintain a ratio of its Total Liabilities to Tangible Net
Worth of less than 12:1. 

  

	 	(l)	 Transactions with Affiliates. Except for (i) the transactions described in the section entitled
“Certain Relationships and Related Party Transactions” in the S-1 Filing and (ii) transactions (including, without limitation, under one or more service agreements or management agreements) with
LD Corp., LD Holdings or LD Intermediate or any of their respective subsidiaries pursuant to which Seller agrees to pay or reimburse any one or more of them for Overhead Costs, Seller will not enter into any transaction, including, without
limitation, any purchase, sale, lease or exchange of property or the rendering of any service, with any Affiliate unless such transaction is (a) otherwise permitted (or not restricted) under the Agreement, (b) in the ordinary course of
Seller’s business, and (c) upon fair and reasonable terms no less favorable to Seller than it would obtain in a comparable arm’s length transaction with a Person which is not an Affiliate. For the avoidance of doubt, nothing herein
prohibits Seller from making or paying any dividend or distribution to its members or shareholders on account of their equity interests in Seller. 

(g) The Repurchase Agreement is hereby amended by adding Annex III thereto, attached to this Amendment as Annex One. 

Section 2. Amendments to Participation Agreement. Effective as of the Effective Date, the Participation Agreement is hereby
amended as follows: 
 (a) Section 1 of the Participation Agreement is hereby amended by deleting the definition of
“Affiliate” in its entirety and replacing it with the following new definition: 
 “Affiliate” shall mean, with
respect to any Person, any other Person which, directly or indirectly, controls, is controlled by, or is under common control with, such Person. For purposes of this definition, “control” (together with the correlative meanings of
“controlled by” and “under common control with”) means possession, directly or indirectly, of the power (a) to vote [***]% or more of the securities (on a fully diluted basis) having ordinary voting power for the directors
or managing general partners (or their equivalent) of such Person, or (b) to direct or cause the direction of the management or policies of such Person, whether through the ownership of voting securities, by contract, or otherwise; provided,
however, that, with respect to the Seller, the term “Affiliate” shall not include any Person holding publicly-traded shares in LD Corp. (or any Person which controls, is controlled by or is under common control with, such Person holding
publicly-traded shares in LD Corp.) unless such Person would qualify as an Affiliate without taking into account its ownership of any publicly-traded shares in LD Corp. 

(b) Section 1 of the Participation Agreement is hereby amended by adding the following new definition in the appropriate alphabetical
order: 
 “Total Liabilities” shall mean, as of any date of determination, the total liabilities on such date of
determination, to be determined in accordance with GAAP. 
 (c) Upon consummation of the IPO, subclause (xi) of
Section 9(a) of the Participation Agreement is hereby deleted in its entirety and replaced with the following new subclause: 

(xi) Seller shall, at all times, maintain (x) a Tangible Net Worth of not less than $[***],

  
 - 4 - 

 
(y) Liquidity in an amount greater than or equal to $[***], and (z) a ratio of its Total Liabilities to Tangible Net Worth of less than 12:1; 

Section 3. Consents. As of the Effective Date, Buyer hereby (a) consents to the IPO, the Restructuring Transactions and the
Use of IPO Proceeds and (b) agrees that the IPO, the Restructuring Transactions and the Use of IPO Proceeds shall not constitute a violation, breach, Default or Event of Default under either Agreement, any other Program Document or any other
document or instrument executed in connection therewith. Without limiting the generality of the foregoing, the Buyer hereby acknowledges and agrees that the IPO and the Restructuring Transactions shall not constitute a “Change of Control”
under the Repurchase Agreement and hereby waives Seller’s compliance with Section 22(h) of the Repurchase Agreement solely with respect to the IPO and Restructuring Transactions. 

Section 4. Fees and Expenses. The Seller agrees to pay to Buyer all fees and out of pocket expenses incurred by Buyer in
connection with this Amendment, including all reasonable fees and out of pocket costs and expenses of the legal counsel Buyer incurred in connection with this Amendment, in accordance with Paragraph 23(b) and
Section 21(a) of the Repurchase Agreement and the Participation Agreement, respectively. 
 Section 5.
Defined Terms. Any terms capitalized but not otherwise defined herein should have the respective meanings set forth in the Agreement, as applicable. 

Section 6. Limited Effect. Except as amended hereby, each Agreement shall continue in full force and effect in accordance with its
terms. Reference to this Amendment need not be made in any 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, any Agreement,
any reference in any of such items to any Agreement being sufficient to refer to the Agreements as amended hereby. 
 Section 7.
Representations. In order to induce Buyer to execute and deliver this Amendment, Seller hereby represents to Buyer 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 default or Default or Event of Default has occurred and is continuing under the Program Documents. 

Section 8. 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 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. 
 [SIGNATURE PAGE FOLLOWS] 

  
 - 5 - 

 IN WITNESS WHEREOF, Buyer and Seller have caused this Amendment to be executed and delivered
by their duly authorized officers as of the Effective Date. 
  

									
	 JEFFERIES FUNDING LLC (f/k/a JEFFERIES MORTGAGE FUNDING, LLC),

as Buyer
	  	    	  	LOANDEPOT.COM, LLC, 
as Seller

									
					
	By:	  	  
	  	    	  	By:	  	  

	 Name:
 Title:
	  	    	  	 Name:
 Title:

 Signature Page to Amendment Number Four to the MRA and 

Amendment Number Two to the Mortgage Loan Participation Purchase and Sale AgreementEX-10.21.3

 Exhibit 10.21.3 

EXECUTION 
 AMENDMENT NUMBER
THREE 
 to the 
 Mortgage Loan
Participation Purchase and Sale Agreement 
 Dated as of February 28, 2013 

between 
 JEFFERIES FUNDING LLC
(f/k/a JEFFERIES MORTGAGE FUNDING, LLC) 
 and 

LOANDEPOT.COM, LLC 
 This
AMENDMENT NUMBER THREE (this “Amendment”) is made as of this 25th day of June, 2019, by and between Jefferies Funding LLC (f/k/a Jefferies Mortgage Funding, LLC)
(“Purchaser”) and loanDepot.com, LLC (“Seller”) to the Mortgage Loan Participation Purchase and Sale Agreement, dated as of Feburary 28, 2013 (as amended, supplemented or otherwise modified from time to time, the
“Agreement”), between Purchaser and Seller. 
 WHEREAS, Seller and Purchaser agree to amend the Agreement as more
specifically set forth herein; and 
 WHEREAS, as of the date of this Amendment, 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 June 25, 2019 (the
“Effective Date”), the Agreement is hereby amended as follows: 
 (a) Section 1 of the Agreement
is hereby amended by deleting the respective definitions for “Mortgage Loan” and “Participation Certificate” in their entirety and replacing them with the following revised definitions (with the new language underlined for ease
of review): 
 “Mortgage Loan”: (i) A GNMA Mortgage Loan, a FNMA Mortgage Loan, a FHLMC Mortgage Loan
or (ii) any mortgage loan which is subject to a Pre-Formation Participation Certificate which mortgage loan is (x) an Agency Eligible Mortgage Loan,
(y) a Jumbo Mortgage Loan, or (z) an Approved Mortgage Loan. 

“Participation Certificate”: A GNMA Participation Certificate, a FNMA Participation Certificate, a FHLMC
Participation Certificate, or Pre-Formation Participation Certificate as applicable. 
 (b)
Section 1 of the Agreement is hereby further amended by adding the following new terms and related definitions in appropriate alphabetical order: 

“Agency Eligible Mortgage Loan”: A residential mortgage loan that is is in Strict Compliance with an
applicable Agency Guide. 
 “Approved Mortgage Loan”: A residential mortgage loan (other than a GNMA
Mortgage Loan, a FNMA Mortgage Loan, a FHLMC Mortgage Loan, an Agency Eligible Mortgage Loan or a Jumbo Mortgage Loan) that is acceptable to the Purchaser in its sole and absolute discretion. 

 

 “Jumbo Mortgage Loan”: A first lien residential mortgage
loan (i) with respect to which Seller has obtained a Takeout Commitment on or prior to the related Purchase Date, and (ii) for which the original loan amount is greater than the conforming limit in the jurisdiction where the related
Mortgaged Property is located. 
 “Pre-Formation Participation
Certificate”: Any Participation Certificate issued initially with the Pool No. indicated as “TBD.” 
 (c) The second
sentence of Section 2(b) of the Agreement is hereby deleted in its entirety and replaced with the following revised Section (with the new language underlined for ease of review): 

“Seller shall not offer for sale to Purchaser any Participation Certificate as to which the Expiration Date of the related
Takeout Commitment with respect to the Related Mortgage Loans thereunder is two (2) Business Days or less following the Purchase Date, or in the case of any Pre-Formation Participation Certifcate, is
more than ten (10) Business Days following the Purchase Date.” 
 (d) Sections 9(b)(viii), (ix)
and (xxxi) of the Agreement are hereby deleted in its entirety and replaced with the following revised Sections (with the new language underlined for ease of review): 

“(viii) Except if such Mortgage Loan is a Jumbo Mortgage Loan or an Approved Mortgage Loan, such Mortgage Loan is
in Strict Compliance with the requirements and specifications (including, without limitation, all representations and warranties required in respect thereof) set forth in the applicable Agency Guide; 

(ix) Such Mortgage Loan (x) is eligible, in all respects, to be pooled in a FHMLC Security, FNMA Security or
GNMA Security, as the case may be, and is scheduled to be securitized within forty-five (45) days of the related Purchase Date hereunder, or (y) satisfies the requirements of the Agency Guides (unless such Mortgage Loan is
a Jumbo Mortgage Loan or an Approved Mortgage Loan) and is scheduled to be sold to the relevant Takeout Investor within ten (10) Business Days of the related Purchase Date hereunder; 

(xxxi) To the best of Seller’s knowledge, no improvement located on or being part of the related Mortgaged Property is in
violation of any applicable zoning law or regulation and all inspections, licenses and certificates required to be made or issued with respect to all occupied portions of such Mortgaged Property, and with respect to the use and occupancy of the
same, including but not limited to certificates of occupancy and fire underwriting certificates, had been made or obtained from the appropriate authorities and such Mortgaged Property was lawfully occupied under applicable law. Solely with
respect to Jumbo Mortgage Loans and to the best of Seller’s knowledge, the Mortgaged Property is not being used for business purposes, as defined in the Federal
Truth-in-Lending Act of 1968, as amended, and Regulation Z thereunder;” 

Section 2. 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 21(a) of the
Agreement. 

  
 - 2 - 

 Section 3. Defined Terms. Any terms capitalized but not otherwise defined herein
should have the respective meanings set forth in the Agreement. 
 Section 4. 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 5. 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 default or Default or Event of Default has occurred
and is continuing under the Program Documents. 
 Section 6. 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 7. 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. 

[SIGNATURE PAGE FOLLOWS] 

  
 - 3 - 

 IN WITNESS WHEREOF, Purchaser and Seller have caused this Amendment to be executed and
delivered by their duly authorized officers as of the Effective Date. 
  

									
	 JEFFERIES FUNDING, LLC (f/k/a Jefferies Mortgage Funding, LLC),

as Purchaser
	 		  	 LOANDEPOT.COM, LLC,
 as
Seller

					
	By:	 	
                     
                                   
	 		  	By:	 	
                     
                                   

	Name:	 		  	Name:
	Title:	 		  	Title:

 Amendment Three to Mortgage Loan Participation Purchase and Sale Agreement

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"}]]