That wouldn't happen.
Players still have a value assigned to them in an exchange deal. We would then get the % of the overall value of the deal, not just the cash portion.
And it can even be beneficial for clubs to overvalue their players in such a deal (see the Barca - Juve Arthur/Pjanic...