At June 30, 2023 and December 31, 2022, we had pledged callable agency securities, residential government-sponsored mortgage-backed securities and collateralized mortgage obligations with a carrying value of $4.6 million and $14.2 million, respectively, to customers who require collateral for overnight repurchase agreements and deposits.
We repaid our short-term FHLB advances of $325.0 million that were outstanding as of December 31, 2022 and matured in the first quarter of 2023. As a result, we have all of our FHLB capacity available for future liquidity needs. At June 30, 2023, Primis Bank had lendable collateral value in the form of residential 1-4 family mortgages, HELOCs, 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 payable on the trust preferred securities 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.
7. 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.