DeFi: A Journey Through Hacks, Risks, and Resilience