Computer Science
>
>

COS 473: Elements of Decentralized Finance

Spring 2023

Princeton University

This Princeton University course presents an interdisciplinary approach to understanding DeFi. It introduces various financial instruments enabled by blockchains and provides a hands-on experience interacting with Ethereum's testnet. Topics covered include token transfers, market-making, oracles, and DAOs.

Course Page

Overview

Blockchains are digital platforms whose consistency and liveness are maintained by a decentralized set of participants. The popular blockchain platforms are programmable (i.e., support applications defined via a Turing complete programming language) and are permissionless (i.e., transactions on the platform are open to anyone; the bar to participate is very lightweight). The combination of programmability, permissionless access and the financial nature of the underlying token (e.g., ETH in the Ethereum blockchain) has led to tremendous innovation in financial products on the blockchain, broadly covered under the rubric of decentralized finance or simply DeFi.

Prerequisites

The basis prerequisites are a maturity with algorithms (COS 226), probability (ORF 245) and computer systems (COS 316). Background in blockchains (ECE/COS 470 and COS 495) and financial mathematics (ORF 335) will be helpful.

Learning objectives

The purpose of this course is to introduce the various novel types of financial instruments enabled by blockchains, classified as “elements” of DeFi. The course is interdisciplinary since it covers both finance and computer science topics. Finance terms are introduced on a need-to-know basis and no hard prerequisites in financial engineering are needed. Basic background in computer science (programming) is expected. The course covers a technical discipline that is developing at a fast pace – course material in the form of slides and notes are provided for each lecture, but the students will be encouraged to read a diverse range of reference material (source codes, whitepapers, web forum discussions). Nine elements of DeFi are discussed:

  1. Token transfers: native blockchain transactions
  2. Market making via smart contracts
  3. Oracles: importing external data
  4. Borrow/Lending: banking functionality
  5. Cross border finance: bridges, wrapped tokens
  6. Stable coins: tying tokens to fiat
  7. Synthetics and Perpetuals: self-adapting financial instruments
  8. NFTs : digital collectibles
  9. DAOs : tokenized governance

The pedagogical style is designed to provide a hands-on experience with the material. Each class will be divided into two parts: the first part will be a lecture designed to highlight the conceptual and algorithmic aspects of the material. the second part will be a lab activity designed to provide a hands-on experience and highlight the practical aspects of interacting with a permissionless public blockchain (Ethereum testnet).

Textbooks and other notes

Supplemental reading: Decentralized Finance, an online course on DeFi.

Other courses in Blockchain

Courseware availability

Lecture slides available at Course Material

No videos available

Assignments available at Course Material

Labs available at Course Material

No other materials available

Covered concepts