DeFi are essentially just smart contracts-lines of code that define a set of conditions and actions. In a cryptocurrency, smart contracts are carried out on the blockchain. Currently the Ethereum blockchain is the most used to create smart contracts, in general.