Gain from selling a note portfolio, then lending back into the same QOF
Working through something on the debt side. Say I sell a seasoned performing note portfolio at a gain and I want that gain to go into a QOF rather than pay tax on it now. Two things I can't get comfortable on.
First, eligibility. The gain on sale of the notes themselves is capital gain to me as an investor, or at least that's how it has been treated. But part of what I collect on those notes is accrued discount, which is ordinary. So some slice of the proceeds may be ineligible for deferral even though the wire is one number.
Second, and this is the one that interests me more, I'd rather be the lender to the OZ project than the equity. So could I put the gain into the QOF as equity for the deferral, and separately originate the construction loan to the QOZB? At that point I'm a lender to an entity I hold an interest in. If my equity stake stays under the related-party threshold, does the loan stand on its own, or does having debt and equity in the same project start to unwind the qualifying property treatment? I've seen the 20% figure thrown around and I don't know which test it belongs to.