EXECUTION VERSION 756400675 SECOND AMENDMENT TO CREDIT AGREEMENT THIS SECOND AMENDMENT TO CREDIT AGREEMENT (this “Amendment”), dated as of September 11, 2023, is entered into by and among ENERGY RECOVERY, INC., a Delaware corporation (the “Company” and together with any other Person that becomes a Borrower under the Credit Agreement as defined below) from time to time, each individually, a “Borrower”, and collectively, jointly and severally, the “Borrowers”), the other Loan Parties party hereto, and JPMORGAN CHASE BANK, N.A., as Lender (the “Lender”). Unless otherwise specified herein, capitalized terms used in this Amendment shall have the meanings ascribed to them in the Credit Agreement, as applicable, in each case, as hereinafter defined. WHEREAS, the Company, the other Loan Parties party thereto from time to time and the Lender are parties to that certain Credit Agreement, dated as of December 22, 2021 (as it may be amended, restated, supplemented or otherwise modified from time to time prior to the date hereof, the “Existing Credit Agreement”; and the Existing Credit Agreement, as amended by this Amendment, the “Credit Agreement”); WHEREAS, the Company has requested that Lender amend the Existing Credit Agreement as set forth herein; and WHEREAS, on the terms and conditions set forth herein, the Lender has agreed to amend the Existing Credit Agreement as set forth herein. NOW, THEREFORE, for and in consideration of the premises and mutual agreements herein contained and for the purposes of setting forth the terms and conditions of this Amendment and for other valuable consideration, the receipt and sufficiency of which are hereby acknowledged, the parties hereto, intending to be bound, hereby agree as follows: 1. Amendments to Credit Agreement. Subject to the terms and conditions of this Amendment, the Existing Credit Agreement is hereby amended by amending and restating Section 2.04(b) in its entirety to read as follows: “(b) Notice of Issuance, Amendment, Extension; Certain Conditions. To request the issuance of a Letter of Credit (or the amendment or extension of an outstanding Letter of Credit), the Borrower Representative shall hand deliver or fax (or transmit through Electronic System, if arrangements for doing so have been approved by the Lender) to the Lender (reasonably in advance of the requested date of issuance, amendment or extension, but in any event no less than three (3) Business Days) a notice requesting the issuance of a Letter of Credit, or identifying the Letter of Credit to be amended, renewed or extended, and specifying the date of issuance, amendment or extension (which shall be a Business Day), the date on which such Letter of Credit is to expire (which shall comply with paragraph (c) of this Section), the amount of such Letter of Credit, the name and address of the beneficiary thereof, and such other information as shall be necessary to prepare, amend, renew or extend such Letter of Credit. In addition, as a condition to any such Letter of Credit issuance, the applicable Borrower shall have entered into a continuing agreement (or other letter of credit agreement) for the issuance of letters of credit and/or shall submit a letter of credit application, in each case, as reasonably required by the Lender and using Lender’s standard form (each, a “Letter of Credit Agreement”). In the event of any inconsistency between the terms and conditions of this Agreement and the terms and conditions of any Letter of Credit Agreement, the terms and conditions of this Agreement shall control. A Letter of Credit shall be issued, amended, renewed or extended only if (and upon issuance, amendment or extension of each Letter of Credit the Borrowers shall be deemed to represent and warrant that), Exhibit 10.1


 
2 756400675 after giving effect to such issuance, amendment or extension (i) the LC Exposure shall not exceed $30,000,000 and (ii) the Revolving Exposure shall not exceed the Revolving Commitment. The Lender shall not be under any obligation to issue any Letter of Credit if: any order, judgment or decree of any Governmental Authority or arbitrator shall by its terms purport to enjoin or restrain the Lender from issuing such Letter of Credit, or any Requirement of Law relating to the Lender or any request or directive (whether or not having the force of law) from any Governmental Authority with jurisdiction over the Lender shall prohibit, or request that the Lender refrain from, the issuance of letters of credit generally or such Letter of Credit in particular or shall impose upon the Lender with respect to such Letter of Credit any restriction, reserve or capital requirement (for which the Lender is not otherwise compensated hereunder) not in effect on the Effective Date, or shall impose upon the Lender any unreimbursed loss, cost or expense which was not applicable on the Effective Date and which the Lender in good faith deems material to it, or (ii) the issuance of such Letter of Credit would violate one or more policies of the Lender applicable to letters of credit generally.” 2. Conditions Precedent to Effectiveness. This Amendment shall become effective upon the satisfaction of each of the following conditions precedent: (a) the Lender (or its counsel) shall have received a counterpart of this Amendment, signed by the Company, the other Loan Parties and the Lender; and (b) the Lender shall have received all reasonable and documented out-of-pocket fees required to be paid under the Loan Documents, and all expenses required to be reimbursed for which invoices have been presented (including the reasonable and documented out-of-pocket fees and expenses of legal counsel), on or before the date hereof. 3. Representations. Each Loan Party hereby represents and warrants to the Lender that: (a) the execution and delivery of this Amendment and the performance of its obligations hereunder are within each Loan Party’s corporate or other organizational powers and have been duly authorized by all necessary corporate or other organizational actions and, if required, actions by equity holders, (b) no Default or Event of Default exists both before and after giving effect to this Amendment, (c) this Amendment has been duly executed and delivered by such Loan Party and constitutes a legal, valid and binding obligation of such Loan Party, enforceable in accordance with its terms, subject to applicable bankruptcy, insolvency, reorganization, moratorium or other laws affecting creditors’ rights generally and subject to general principles of equity, regardless of whether considered in a proceeding in equity or at law, (d) all Liens created under the Loan Documents continue to be perfected and have priority over all other Liens on the Collateral except in the case of Liens permitted under Section 6.02 of the Credit Agreement, to the extent any such Liens would have priority over the Liens in favor of the Lender pursuant to any applicable law, (e) the representations and warranties of the Loan Parties set forth in the Credit Agreement and the other Loan Documents are true and correct in all material respects (it being understood and agreed that any representation or warranty which by its terms is made as of a specified date shall be required to be true and correct in all material respects only as of such specified date, and that any representation or warranty which is subject to any materiality qualifier shall be required to be true and correct in all respects); and (f) the execution and delivery of this Amendment and the performance of its obligations hereunder (i) do not require any consent or approval of, registration or filing with, or any other action by, any Governmental Authority, except such as have been obtained or made and are in full force and effect and except for filings necessary to perfect Liens created pursuant to the Loan Documents, (ii) will not violate any Requirement of Law applicable to any Loan Party or any Subsidiary, (iii) will not violate or result in a default under any indenture, agreement or other instrument binding upon any Loan Party or any Subsidiary or the assets of any Loan Party or any Subsidiary, or give rise to a right


 
3 756400675 thereunder to require any payment to be made by any Loan Party or any Subsidiary, except for such violations or defaults that would not reasonably be expected to have a Material Adverse Effect, and (iv) will not result in the creation or imposition of, or other requirement to create, any Lien on any asset of any Loan Party or any Subsidiary, except Liens permitted pursuant to Section 6.02 of the Credit Agreement. 4. Ratification. Except as expressly modified by this Amendment, all of the terms, provisions and conditions of the Credit Agreement, as heretofore amended, shall remain unchanged and in full force and effect. Each Loan Party, as debtor, grantor, pledgor, guarantor, assignor, or in any other similar capacity in which such Person grants liens or security interests in its property or otherwise acts as accommodation party or guarantor, as the case may be, hereby (i) ratifies and reaffirms all of its payment and performance obligations, contingent or otherwise, under the Credit Agreement and each other Loan Document to which it is a party (after giving effect hereto) and (ii) to the extent such Person granted liens on or security interests in any of its property pursuant to any Loan Documents as security for or otherwise guaranteed the Obligations under or with respect to the Loan Documents, ratifies and reaffirms such guarantee and grant of security interests and liens and confirms and agrees that such security interests and liens hereafter secure all of the Obligations as amended hereby. Except as herein specifically agreed, the Credit Agreement and each other Loan Document are hereby ratified and confirmed and shall remain in full force and effect according to their terms. Except as specifically set forth herein, the execution, delivery and effectiveness of this Amendment shall not operate as a waiver of any right, power, privilege or remedy of the Lender under the Credit Agreement or any of the other Loan Documents, or constitute a waiver of any provision of the Credit Agreement or any of the other Loan Documents. This Amendment shall not constitute a course of dealing with the Lender at variance with the Credit Agreement or the other Loan Documents such as to require further notice by such Person to require strict compliance with the terms of the Credit Agreement and the other Loan Documents in the future. Each Loan Party acknowledges and expressly agrees that the Lender reserves the right to, and does in fact, require strict compliance with all terms and provisions of the Credit Agreement (as expressly modified by this Amendment) and the other Loan Documents. 5. Miscellaneous. (a) Governing Law. This Amendment shall be governed by and construed in accordance with the internal laws of the State of New York, but giving effect to federal laws applicable to national banks. (b) WAIVER OF JURY TRIAL. EACH PARTY HERETO HEREBY WAIVES, TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, ANY RIGHT IT MAY HAVE TO A TRIAL BY JURY IN ANY LEGAL PROCEEDING DIRECTLY OR INDIRECTLY ARISING OUT OF OR RELATING TO THIS AMENDMENT, ANY OTHER LOAN DOCUMENT OR THE TRANSACTIONS CONTEMPLATED HEREBY OR THEREBY (WHETHER BASED ON CONTRACT, TORT OR ANY OTHER THEORY). EACH PARTY HERETO (A) CERTIFIES THAT NO REPRESENTATIVE OR OTHER AGENT (INCLUDING ANY ATTORNEY) OF ANY OTHER PARTY HAS REPRESENTED, EXPRESSLY OR OTHERWISE, THAT SUCH OTHER PARTY WOULD NOT, IN THE EVENT OF LITIGATION, SEEK TO ENFORCE THE FOREGOING WAIVER AND (B) ACKNOWLEDGES THAT IT AND THE OTHER PARTIES HERETO HAVE BEEN INDUCED TO ENTER INTO THIS AMENDMENT BY, AMONG OTHER THINGS, THE MUTUAL WAIVERS AND CERTIFICATIONS IN THIS SECTION. (c) Counterparts; Effectiveness. This Amendment may be executed in counterparts (and by different parties hereto on different counterparts), each of which shall constitute an original, but all of which when taken together shall constitute a single contract. This Amendment shall become effective as provided in Section 3 hereof and when the Lender shall have received counterparts hereof which, when taken together, bear the signatures of each of the other parties hereto, and thereafter shall be binding upon


 
4 756400675 and inure to the benefit of the parties hereto and their respective successors and assigns. Delivery of an executed counterpart of a signature page of this Amendment that is an Electronic Signature transmitted by telecopy, emailed pdf. or any other electronic means that reproduces an image of an actual executed signature page shall be effective as delivery of a manually executed counterpart of this Amendment, such other Loan Document or such Ancillary Document, as applicable. The words “execution,” “signed,” “signature,” “delivery,” and words of like import in or relating to this Amendment, such other Loan Document or such Ancillary Document, as applicable shall be deemed to include Electronic Signatures, deliveries or the keeping of records in any electronic form (including deliveries by telecopy, emailed pdf. or any other electronic means that reproduces an image of an actual executed signature page), each of which shall be of the same legal effect, validity or enforceability as a manually executed signature, physical delivery thereof or the use of a paper-based recordkeeping system, as the case may be to the extent and as provided for in any applicable law, including the Federal Electronic Signatures in Global and National Commerce Act, the New York State Electronic Signatures and Records Act, or any other similar state laws based on the Uniform Electronic Transactions Act. (d) Entire Agreement. This Amendment, the other Loan Documents and any separate letter agreements with respect to fees payable to the Lender constitute the entire contract among the parties relating to the subject matter hereof and supersede any and all previous agreements and understandings, oral or written, relating to the subject matter hereof. (e) Severability of Provisions. Any provision of this Amendment held to be invalid, illegal or unenforceable in any jurisdiction shall, as to such jurisdiction, be ineffective to the extent of such invalidity, illegality or unenforceability without affecting the validity, legality and enforceability of the remaining provisions thereof; and the invalidity of a particular provision in a particular jurisdiction shall not invalidate such provision in any other jurisdiction. (f) Successors and Assigns. The provisions of this Amendment shall be binding upon and inure to the benefit of the parties hereto and their respective successors and assigns permitted under the Credit Agreement. (g) Headings. Article and Section headings used herein are for convenience of reference only, are not part of this Amendment and shall not affect the construction of, or be taken into consideration in interpreting, this Amendment. (h) Incorporation. This Amendment shall form a part of the Credit Agreement, and all references to the Credit Agreement shall mean that document as hereby modified. Upon the effectiveness of this Amendment, each reference in the Credit Agreement or any other Loan Document to “this Agreement”, “hereunder”, “hereof”, “herein” or words of similar import shall mean and be a reference to the Credit Agreement as amended hereby. (i) Loan Document. This Amendment shall constitute a Loan Document. (j) No Prejudice; No Impairment. This Amendment shall not prejudice, limit, restrict or impair any rights, privileges, powers or remedies of the Lender under the Credit Agreement or any other Loan Documents as hereby amended. The Lender reserves, without limitation, all rights which the Lender has now or in the future against any guarantor or endorser of the Obligations. [Signatures Immediately Follow]


 
Signature Page to Second Amendment to Credit Agreement IN WITNESS WHEREOF, the undersigned have executed this Second Amendment to Credit Agreement as of the date first written above. BORROWER: ENERGY RECOVERY, INC. By: Name: Title: CFO


 
LENDER: JPMORGAN CHASE BANK, N.A., as the Lender Signature Page to Second Amendment to Credit Agreement