Understanding Smart Contract Risks in DeFi