On July 8, 2022, the Second Amendment Prepayment was paid in connection with the closing of Alcon Transaction, and as such, the Amortization Date was extended to January 1, 2026. The transaction resulted in a loss on extinguishment of debt of $2,583 for the year ended December 31, 2022, consisting of the prepayment premium, a pro-rata portion of the unamortized debt discount and issuance costs and the unaccreted exit fee due upon the Second Amendment Prepayment.
On December 27, 2022, the Company entered into an amendment to the Loan Agreement (the “Third Loan Amendment”). Pursuant to the Third Loan Amendment, the Lender and Agent agreed to amend certain provisions of the Loan Agreement to permit the transfer of the listing of the Company’s common stock from The Nasdaq Global Select Market to The Nasdaq Capital Market. Pursuant to the Third Loan Amendment, the Company agreed (A) to make partial prepayments of the principal amount of the term loan outstanding under the Loan Agreement as follows (the “Third Amendment Prepayments”): (1) a payment of $5,000 on or before June 30, 2023, representing a partial prepayment of principal in the amount of $4,673, plus a final payment fee of $327 and (2) a payment of $5,000 on or before January 31, 2024, representing a partial prepayment of principal in the amount of $4,673, plus a final payment fee of $327 and (B) that the Amortization Date under the Loan Agreement shall be changed from January 1, 2026 to January 1, 2025.
Pursuant to the Third Loan Amendment, in addition to the Third Amendment Prepayments, if the Company makes an additional prepayment under the Loan Agreement equal to $5,000 (inclusive of the final payment fee) on or prior to December 31, 2024 (the “First Extension Prepayment”), the Amortization Date will be automatically changed to July 1, 2025, and the maturity date of the Loan Agreement will be automatically changed from May 1, 2026 to November 1, 2026. If, in addition to the Third Amendment Prepayments and the First Extension Prepayment, the Company makes an additional prepayment under the Loan Agreement equal to $2,500 (inclusive of the final payment fee) on or prior to June 30, 2025 (the “Second Extension Prepayment”), the Amortization Date will be automatically changed to January 1, 2026, and the maturity date of the Loan Agreement will be automatically changed to May 1, 2027.
Under the Third Loan Amendment, the Lender and Agent also agreed to waive the prepayment fees for the Third Amendment Prepayments, the First Extension Prepayment, the Second Extension Prepayment and any other prepayments under the Loan Agreement. Pursuant to the Loan Agreement, the Company also will be required to pay all accrued and unpaid interest on the principal amounts of the term loan being repaid at the time of repayment. The Company paid the Third Amendment Prepayments on January 25, 2023, following which the Company became required to repay the Loan Agreement in monthly installments from January 1, 2025 through May 1, 2026. The principal loan balance under the Loan Agreement following the Third Amendment Prepayments was $33,957.
In addition, in connection with the Loan Agreement, the Company paid certain fees to the Lender and other third-party service providers. The fees paid to the Lender were recorded as a debt discount while the fees paid to other third-party service providers were recorded as debt issuance cost. These costs are being amortized using the effective interest method over the term of the Loan Agreement. The amortization of debt discount and debt issuance cost is included in interest expense within the condensed consolidated statements of operations and comprehensive loss. As of June 30, 2023, the effective interest rate was 16.97%, which takes into consideration the non-cash accretion of the exit fee and the amortization of the debt discount and issuance costs.
During the three months ended June 30, 2023 and 2022, the Company recognized interest expense of $1,412 and $2,124, respectively, for the Loan Agreement. This consisted of amortization of debt discount of $65 and $116 for the three months ended June 30, 2023 and 2022, respectively, accretion of the final payment fee of $238 and $323 for the three months ended June 30, 2023 and 2022, respectively, and the contractual coupon interest expense of $1,109 and $1,685 for the three months ended June 30, 2023 and 2022, respectively. During the six months ended June 30, 2023 and 2022, the Company recognized interest expense of $2,887 and $4,156, respectively, for the Loan Agreement. This consisted of amortization of debt discount of $136 and $229 for the six months ended June 30, 2023 and 2022,