Daniel Pietrzak
Analyst · Barclays
Thank you, Todd. Over the past several quarters, we have commented on the generally tight conditions that continue to prevail in today's marketplace. Especially in markets like these, careful credit selection is critical as is focusing on structural protections within transactions. Despite the overall market trend favoring covenant-like transactions, all of our direct origination activity in the second quarter included both incurrence and maintenance covenants.
We maintained our focus on investing in senior secured and floating rate debt, which, at the end of the second quarter, represented approximately 76% and 70% of the portfolio, respectively. Based on fair value, up from 73% and 69%, respectively, as of March 31, 2018. With the continued emphasis on floating rate assets, our portfolio remains well positioned to benefit from a rising rate environment.
Commitments to direct originations during the quarter were $163 million compared to $79.6 million in the first quarter, 92% of which were in first lien senior secured loans. Loans to 6 new borrowers accounted for $141 million of the total $163 million, representing 86% of direct origination activity, while in the previous quarter, add-on financings to existing borrowers accounted for all of the origination activity, highlighting the momentum the FS/KKR partnership has gained with sponsors and borrowers in just a short amount of time.
Exits of $288 million during the second quarter were driven by both repayments and the sale of certain equity investments. The majority of the repayments of loan positions was driven either by company sales or capital markets refinancing, as opposed to competitor refinancings. And as Todd mentioned, we have continued to focus on reducing our equity exposure.
During the second quarter, we fully exited positions in 3 names, including The Stars Group and SECO industrial products, generating total proceeds of approximately $73 million. The results were positive as these equity sales comprised the majority of the $31 million of net realized gains during the quarter.
Additionally, we expect to fully exit our common equity investment in PSAV at a realized gain in the third quarter in conjunction with the announced sale of the company.
Following the exits during the quarter, equity investments comprised approximately 11% of the portfolio based on fair value as of June 30, 2018, or $386 million, down from 13% as of the end of the first quarter or $468 million. And as we stated last quarter, equity investments are not a core part of our origination and investment strategy. And as we actively work to reduce this exposure, we believe the strength of the current equity markets may present attractive exit opportunities.
Turning more broadly to the portfolio. The gross portfolio yield prior to leverage and excluding nonincome-producing assets was 11.1% at quarter's end, up from 10.9% for the prior quarter and 10.5% for the quarter ended December 2017. The increase in FSIC's gross portfolio yield was driven by an upsize in existing directly originated portfolio investments as well as an increase in LIBOR. As of June 30, 2018, we had 2 companies on nonaccrual, which, in aggregate, represented less than 1% of the portfolio on both a fair value and amortized cost basis.
During the second quarter, our second lien investment in Logan's Roadhouse was placed on nonaccrual, making it the only new nonaccrual asset for the quarter. The position totals approximately $6.1 million based upon fair value and $22.1 million based on amortized cost. Additionally, EV energy was removed from nonaccrual status following its restructuring in June. Our ownership in the restructured entity is reflected in our investment in the common shares of Harvest Oil & Gas Corp.
Now before I turn it over to Mike, I wanted to make some comments about the market generally as well as our pipeline activity. As we mentioned before, the competitive environment continues to intensify. In this market where upper middle market borrowers have access to the capital markets and there is strong competition in the lower part of the middle market, we believe it's critically important to have broad origination capabilities to be highly selective and have the ability to provide a wide range of creative solutions to sponsors and their portfolio companies.
To put some numbers around this, year-to-date, the KKR team has reviewed 740 private credit transactions. On an annualized basis, that's approximately 1,500 transactions compared to 760 in total for all of 2017. While deal flow can be lumpy quarter-over-quarter, we believe our continued investment in the KKR credit platform has resulted in a meaningful uptick in deal flow. When -- we recognize that volume alone doesn't translate into higher future returns. However, it does allow us to be selective in the current environment, which we believe is critical in maintaining our underwriting discipline and serves as a competitive advantage.
I'll now turn the call over to Mike to discuss our financial results for the quarter.