Notes Payable
12 Months Ended
Dec. 31, 2021
Debt Disclosure [Abstract]  
Notes Payable Notes Payable
Long-term debt consisted of the following (in thousands):
December 31,
20212020
Principal amount of long-term debt$— $20,000 
Less: Current portion of long-term debt— — 
Long-term debt, net of current portion— 20,000 
Final payment fee— 1,000 
Debt discount, net of accretion— (1,346)
Long-term debt, net of discount and current portion$— $19,654 
Loan and Security Agreements
On November 19, 2020, the Company entered into a loan and security agreement (the "Oxford Loan Agreement"), with Oxford Finance LLC, or Oxford, for an aggregate principal amount of $20.0 million (the "Oxford Term Loan A") and up to an additional $5.0 million (the "Oxford Term Loan B"). On November 19, 2020, the Company borrowed $20.0 million under the Oxford Term Loan A. Oxford Term Loan A and Oxford Term Loan B (the "Term Loans") bear interest at a floating per annum rate equal to the greater of (i) 8.0% and (ii) the sum of (a) thirty-day LIBOR rate plus (b) 7.84%. In addition, upon loan maturity or prepayment, the Company is required to make a final payment fee equal to 5.0% of the aggregate principal amount borrowed which is being amortized to interest expense over the term of the debt using the effective interest method.
The Company is required to make monthly interest only payments under the Oxford Loan each month beginning on January 1, 2021. Beginning on December 1, 2023, the Company is required to make consecutive equal monthly payments of principal, together with applicable interest, in arrears, based upon a repayment schedule equal to 24 months, with a final maturity date of November 1, 2025 (the “Maturity Date”). At the Company's option, the Company may elect to prepay the loans subject to a prepayment fee equal to the following percentage of the principal amount being prepaid: 2% if an advance is prepaid during the first 12 months following the applicable advance date, 1% if an advance is prepaid after 12 months but prior to 24 months following the applicable advance date, and 0.5% if an advance is prepaid any time after 24 months following the applicable advance date but prior to the Maturity Date.
In addition, in connection with the Oxford Loan Agreement, the Company granted warrants to purchase 18,445 shares of the Company’s common stock at $16.26 per share. The issued warrants are exercisable for 10 years. The Company valued the warrants using the Black-Scholes option pricing model and determined the fair value of the warrants to be $0.2 million. The Company determined the warrants met the criteria for equity classification, and, as such, the fair value of the warrants were recorded as additional paid-in capital upon issuance and as a discount to the debt which is being amortized to interest expense over the term of the Oxford Loan of five years. In addition, the Company incurred debt issuance costs of $0.2 million.
In December 2021, the Company repaid early the outstanding principal balance under the Term Loans as described above plus unpaid accrued interest, the final payment fee and the prepayment fee. The Company recorded a loss on debt extinguishment of $1.2 million related to this repayment for the year ended December 31, 2021.
During the years ended December 31, 2021 and 2020, the weighted average effective interest rate on outstanding borrowings was approximately 9.5% and 6.4%, respectively.