From neglecting security to bad tokenomics, DeFi has played a hand in its own decline