commercial mortgage loans, and investment securities supporting borrowing capacity of approximately $580.8 million from the FHLB.
In June 2023, the Bank began participating in the Federal Reserve discount window borrowing program. At June 30, 2023, the Bank had borrowing capacity of $489.6 million within the program.
In March 2023, the Federal Reserve established the Bank Term Funding Program (“BTFP”) in response to industry disruption, offering loans with up to one year in maturity to eligible depository institutions in exchange for pledged collateral in the form of U.S. Treasuries, agency debt and mortgage-backed securities and other qualifying assets. Borrowing capacity under the BTFP is based on the par value, not fair value, of the collateral. At June 30, 2023, we had securities available of $138.0 million for utilization with the BTFP, with no borrowings outstanding under the program at June 30, 2023.
In 2017, the Company assumed $10.3 million of trust preferred securities that were issued on September 17, 2003 and placed through a trust in a pooled underwriting totaling approximately $650 million. At June 30, 2023 and December 31, 2022, there was $10.3 million outstanding, net of approximately $0.5 million of debt issuance costs. As of June 30, 2023 and December 31, 2022, the interest rate was 8.46% and 7.69%, respectively. At June 30, 2023, all of the trust preferred securities qualified as Tier 1 capital.
On January 20, 2017, Primis completed the sale of $27.0 million of its fixed-to-floating rate senior Subordinated Notes due 2027. Interest is currently payable at an annual floating rate equal to three-month LIBOR plus a spread of 3.95% until maturity or early redemption. At June 30, 2023, 60% of these notes qualified as Tier 2 capital.
On August 25, 2020, Primis completed the sale of $60.0 million of its fixed-to-floating rate Subordinated Notes due 2030. Interest is payable at an initial annual fixed rate of 5.40% and after September 1, 2025, at a floating rate equal to a benchmark rate, which is expected to be Three-Month Term SOFR, plus a spread of 531 basis points. At June 30, 2023, all of these notes qualified as Tier 2 capital.
At June 30, 2023 and December 31, 2022, the remaining unamortized debt issuance costs related to the senior Subordinated Notes totaled $1.4 million and $1.5 million, respectively.
Secured Borrowings
The Company transferred $5.7 million and $20.8 million in principal balance of loans to another financial institution during the three and six months ended June 30, 2023, respectively, that were accounted for as secured borrowings. The balance of secured borrowings was $20.6 million as of June 30, 2023 and the remaining amortized cost balance of the underlying loans was $20.7 million. None of the loans underlying the secured borrowings were past due 30 days or greater or on nonaccrual as of June 30, 2023 and were all internally rated as “pass” loans as presented in our “credit quality indicators” section of Note 3 – Loans and Allowance for Credit Losses. The loans were included in our allowance for credit losses process and an allowance was calculated on the loans as part of their inclusion in a pool with other loans with similar credit risk characteristics. There were no charge-offs of the loans underlying the secured borrowings during the three or six months ended June 30, 2023. The underlying loans collateralize the borrowings and cannot be sold or pledged by the Company.
8.STOCK-BASED COMPENSATION
The 2017 Equity Compensation Plan (the “2017 Plan”) has a maximum number of 750,000 shares reserved for issuance. The purpose of the 2017 Plan is to promote the success of the Company by providing greater incentives to employees, non-employee directors, consultants and advisors to associate their personal financial interests with the long-term financial success of the Company, including its subsidiaries, and with growth in stockholder value, consistent with the Company’s risk management practices.