Technology of DeFi

The Technology of Decentralized Finance.pdf

The technology of decentralized finance

This 36 pages document contains:

  • DeFi Definition and Stack Reference (DSR) Model

  • Settlement Layer

  • DLT Application Layer

  • Interface Layer

  • Consensus, transactions, wallet

  • Cryptoassets in DeFi

  • UTXO based / EVM

  • DeFi Protocols (DEX, Lending, derivatives)

  • DeFi compositions

  • Stablecoins

Decentralized Finance (DeFi) is a new financial paradigm that leverages distributed ledger technologies to offer services such as lending, investing, or exchanging cryptoassets without relying on a traditional centralized intermediary.

A range of DeFi protocols implements these services as a suite of smart contracts, ie software programs that encode the logic of conventional financial operations. Instead of transacting with a counterparty, DeFi users thus interact with software programs that pool the resources of other DeFi users to maintain control over their funds. This paper provides a deep dive into the overall architecture, the technical primitives, and the financial functionalities of DeFi protocols. We analyse and explain the individual components and how they interact through the lens of a DeFi stack reference (DSR) model featuring three layers: settlement, applications and interfaces. We discuss the technical aspects of each layer of the DSR model. Then, we describe the financial services for the most relevant DeFi categories, ie decentralized exchanges, lending protocols, derivatives protocols and aggregators. The latter exploit the property that smart contracts can be “composed”, ie utilize the functionalities of other protocols to provide novel financial services. We discuss how composability allows complex financial products to be assembled, which could have applications in the traditional financial industry. We discuss potential sources of systemic risk and conclude by mapping out an agenda for research in this area.