Exploring the Role of Smart Contracts in DeFi Platforms