Mastering Risk Management in DeFi Platforms and Insurance Technologies