Some decentralized protocols use crypto-to-crypto swaps to facilitate loans. For example, if you use BTC as collateral on a platform, you might be given pBTC in return. Swaps typically generate a taxable event and given the lack of explicit guidance from the IRS, this may be considered a swap rather than a loan.