How Do Smart Contracts Work in Decentralized Finance by BlockchainX