discounts and commissions and offering expenses of $12.8 million. As described further in Note 10 to our consolidated financial statements in this Quarterly Report on Form 10-Q, in June 2023, we completed a follow-on public offering of our common stock pursuant to which we raised approximately $47.8 million in net proceeds, after deducting the underwriting discounts and commissions and offering expenses.
Midcap Trust Term Loan
In October 2020, we entered into the Midcap Trust Term Loan for a $37.5 million credit facility, consisting of a senior, secured term loan. We received $32.5 million in aggregate proceeds as a result of the debt financing. On March 21, 2022, we entered into Amendment No. 1 to the Midcap Trust Term Loan, which amended certain provisions to permit certain additional debt and capital leases.
On June 1, 2022, we entered into Amendment No. 2, which permitted the draw of a second and third tranche of $10.0 million each, which were drawn on June 1, 2022, and September 30, 2022, respectively. Amendment No. 2 also delayed the amortization start dates for the outstanding loan amounts from November 1, 2023 until April 1, 2025, at which point we would be required to repay the principal amounts in seven equal monthly installments until the maturity date. Finally, Amendment No. 2 amended the interest rate payable on the term loan to apply an interest rate equal to the SOFR rate (with a floor of 1.61448%) plus 6.35%.
On November 7, 2022, we entered into Amendment No. 3 to the Midcap Trust Term Loan, which permits the draw of two additional tranches, each totaling $11,250, which were drawn on November 7, 2022, and December 22, 2023, respectively. Amendment No. 3 also delays the amortization start dates for the outstanding loan amounts from April 1, 2025 until December 1, 2025 (subject to further extension upon certain conditions), at which point we will repay the principal amounts in equal monthly installments until the new maturity date of November 1, 2027. In addition, Amendment No. 3 amends the interest rate payable on the term loan to apply an interest rate equal to the SOFR rate (with a floor of 2.50%) plus 6.80%, and resets the call protection to begin as of November 7, 2025. Finally, Amendment No. 3 provides for a commitment fee of $74 that was paid on November 7, 2022 on the new tranche amounts and an exit fee of 4.75%. Substantially all other terms and conditions, and covenants of the credit agreement remain unchanged.
In July 2024, we entered into Amendment No. 4 to the Midcap Trust Term Loan, which amended certain affirmative financial covenants.
The Midcap Trust Term Loan is subject to a minimum revenue financial covenant measuring our last twelve months trailing revenue, tested on a monthly basis.
The Midcap Trust Term Loan is collateralized by substantially all of our assets. The agreement contains customary negative covenants that limit our ability to, among other things, incur additional indebtedness, grant liens, make investments, repurchase stock, pay dividends, transfer assets and merge or consolidate with any other entity or to acquire all or substantially all the capital stock or property of another entity. The agreement also contains customary affirmative covenants, including requirements to, among other things, deliver audited financial statements. If we default under the Midcap Trust Term Loan and if the default is not cured or waived, the lender could cause any amounts outstanding to be payable immediately. Under certain circumstances, the lender could also exercise its rights with respect to the collateral securing such loans. Moreover, any such default would limit our ability to obtain additional financing, which may have an adverse effect on our cash flow and liquidity.
We were in compliance with all covenants under the Midcap Trust Term Loan as of June 30, 2024.
At-the-Market Offering
On November 7, 2022, we entered into the Equity Distribution Agreement with Piper Sandler with respect to an ATM offering program under which we may offer and sell, from time to time at our sole discretion, shares of our common stock having an aggregate offering price of up to $50.0 million through Piper Sandler as our sales agent. As of June 30, 2024, we have not sold any shares of common stock under the ATM program.