The decentralized finance (DeFi) sector has been shaken by significant losses this weekend, with Loopscale and Term Finance losing a combined total of over $7 million due to security breaches.