As-Salaam-Alaikum brothers @Mufti_Faraz_Adam @Mufti_Billal.
Today I found out that some of the coins from which I had made profit in the past were not halal though I believed them to be halal at that time(I found it from a app called crypto halal).
Since the profit I made from those coins got mixed with rest of my funds and was reinvested further in other coins and I might have made profit from this reinvestment as well. How should I go about discarding the haraam amount from my total funds, would it suffice to just give the profit made from the haraam coins to charity?