Decentralized finance offers financial services like borrowing, lending, swapping and trading of crypto tokens on blockchain networks that are powered by a smart contract that is programmed to automate financial services in DeFi.