the defi is used in crypto mining, decentralized exchange and even in yield farming. yeild farming is lending your money in liquidity pool which in return gives them interest.