Understanding and managing economic risks in DeFi