Decentralized Finance - Syllabus

Course Information

   
Course Code FIN-DeFi-501
Credits 6 ECTS
Duration 12 Weeks
Format 2h Lecture + 2h Lab per week
Level Masters / Graduate
Semester Spring 2025

Instructor

   
Name Prof. Dr. Joerg Osterrieder
Email joerg.osterrieder@fhgr.ch
Institution FHGR - University of Applied Sciences of the Grisons
Office Hours By appointment

Course Description

This course provides a comprehensive introduction to decentralized finance (DeFi), exploring the technical foundations, economic mechanisms, and practical applications of blockchain-based financial protocols. Students will gain hands-on experience with DeFi protocols through Python-based analysis and interact with live blockchain data.


Learning Outcomes

Upon completion of this course, students will be able to:

  1. Explain DeFi architecture - Describe how blockchain technology, smart contracts, and cryptographic primitives enable trustless financial services
  2. Analyze AMM mechanics - Calculate swap outputs, price impact, and slippage using constant function market maker formulas
  3. Evaluate lending protocols - Compute collateralization ratios, health factors, and liquidation thresholds in overcollateralized lending
  4. Assess stablecoin stability - Compare different stablecoin mechanisms and evaluate their risk profiles and failure modes
  5. Quantify impermanent loss - Calculate the opportunity cost of liquidity provision under various price divergence scenarios
  6. Design yield strategies - Construct and evaluate risk-adjusted yield farming strategies across multiple protocols
  7. Identify security vulnerabilities - Recognize common smart contract vulnerabilities and analyze historical DeFi exploits
  8. Analyze governance systems - Evaluate token-based governance mechanisms and identify potential attack vectors
  9. Implement DeFi interactions - Write Python code to interact with DeFi protocols using web3.py and analyze on-chain data

Prerequisites

Check Your Readiness Click each prerequisite you've completed to track your readiness for this course.
  • Python proficiency (3.10+) with experience in data analysis libraries
  • Basic understanding of blockchain technology and cryptographic concepts
  • Fundamentals of finance and economics (time value of money, risk/return)
  • Basic statistics and probability (distributions, hypothesis testing)

Weekly Schedule

Week 1: Introduction to DeFi

Complete

Overview of decentralized finance, its history, and comparison with traditional finance

What is Decentralized Finance? History and evolution of DeFi DeFi vs Traditional Finance (TradFi) Key characteristics and principles The DeFi ecosystem overview

Reading: Decentralized Finance: On Blockchain- and Smart Contract-Based Financial Markets

Week 2: Blockchain Foundations

Complete

Ethereum, smart contracts, and the technical infrastructure of DeFi

Ethereum architecture Smart contracts fundamentals Gas and transaction costs EVM and bytecode Layer 1 vs Layer 2 solutions

Reading: Ethereum: A Next-Generation Smart Contract and Decentralized Application Platform

Week 3: Tokens and Standards

Complete

Token standards, fungible and non-fungible tokens, and tokenomics

ERC-20 fungible tokens ERC-721 and ERC-1155 NFTs Token economics (tokenomics) Token distribution mechanisms Wrapped tokens and bridges

Reading: An Empirical Study of ERC20 Token Networks

Week 4: Decentralized Exchanges

Complete

Automated Market Makers, liquidity pools, and DEX mechanics

Order books vs AMMs Constant Product Market Makers (x*y=k) Uniswap V2 and V3 mechanics Liquidity provision and LP tokens Slippage and price impact

Reading: An Analysis of Uniswap Markets

Week 5: Lending Protocols

Complete

Collateralized lending, interest rate models, and liquidations

Overcollateralized lending Interest rate models Health factors and liquidations Aave and Compound mechanics Flash loans

Reading: SoK: Lending Pools in Decentralized Finance

Week 6: Stablecoins

Complete

Stablecoin mechanisms, algorithmic vs collateralized designs

Fiat-collateralized stablecoins (USDC, USDT) Crypto-collateralized stablecoins (DAI) Algorithmic stablecoins Stability mechanisms Depeg events and risks

Reading: Stablecoins 2.0: Economic Foundations and Risk-based Models

Week 7: Yield Farming and Liquidity Mining

Complete

Yield optimization strategies, impermanent loss, and risk management

Yield farming fundamentals Liquidity mining programs Impermanent loss calculation Yield aggregators Risk-adjusted returns

Reading: Liquidity Mining on Decentralized Exchanges

Week 8: Derivatives and Synthetics

Coming_soon

Perpetual futures, options, and synthetic asset protocols

Perpetual futures mechanics Funding rates DeFi options protocols Synthetic assets Oracle dependencies

Reading: The Decentralized Financial Crisis

Week 9: Oracles and Data Feeds

Coming_soon

Price oracles, the oracle problem, and data reliability

The oracle problem Chainlink architecture TWAP oracles Oracle manipulation attacks Decentralized oracle networks

Reading: SoK: Oracles from the Ground Truth to Market Manipulation

Week 10: Governance and DAOs

Coming_soon

Decentralized governance, voting mechanisms, and treasury management

Token-based governance Voting mechanisms (quadratic, conviction) Governance attacks Treasury management DAO structures

Reading: A Survey on DAOs and Their Governance

Week 11: Security and Risk

Coming_soon

Smart contract vulnerabilities, audits, and risk management

Common smart contract vulnerabilities Reentrancy attacks Flash loan attacks MEV and frontrunning Security audits and best practices

Reading: Flash Boys 2.0: Frontrunning in Decentralized Exchanges

Week 12: Future of DeFi

Coming_soon

Emerging trends, Layer 2 solutions, and regulatory landscape

Layer 2 scaling solutions Cross-chain DeFi Real-world asset tokenization Regulatory developments DeFi and institutional adoption

Reading: SoK: Layer-Two Blockchain Protocols

Week 13: DeFi_Regulation

Coming_soon

Global regulatory frameworks for DeFi

Topic 13.1 Topic 13.2

Assessment

Weekly Exercises 30%
Midterm Project 20%
Paper Presentation 15%
Final Project 35%
Component Weight Description
Weekly Exercises 30% 12 exercises, best 10 count
Midterm Project 20% Due Week 6 - Protocol analysis report
Paper Presentation 15% Present and lead discussion on research paper
Final Project 35% Complete DeFi analysis/implementation project

Grading Scale

Grade Percentage
A 90-100%
B 80-89%
C 70-79%
D 60-69%
F < 60%

Course Materials

Required Software

  • Python 3.10+ with Jupyter notebooks
  • Web3.py for blockchain interaction
  • MetaMask or similar wallet (for testnet interactions)
  • Harvey, Ramachandran, Santoro (2021). “DeFi and the Future of Finance”
  • Schaer (2021). “Decentralized Finance: On Blockchain- and Smart Contract-Based Financial Markets”
  • Uniswap, Aave, Compound protocol documentation

Online Resources


Policies

Academic Integrity

All work must be original. Use of AI assistants for ideation and code assistance is permitted; direct copying or submitting AI-generated content as your own is not. All sources must be properly cited.

Late Submissions

  • Up to 24 hours late: 10% penalty
  • Up to 48 hours late: 25% penalty
  • Beyond 48 hours: Not accepted without prior arrangement

Collaboration

Students are encouraged to discuss concepts and approaches with classmates. However, all submitted code and written work must be your own. Clearly document any external resources or discussions in your submissions.


Course Schedule Overview

Week Module Topic Deliverable
1-3 Foundations DeFi, Blockchain, Tokens Exercise 1-3
4-6 Core Protocols DEXs, Lending, Stablecoins Midterm Project
7-9 Strategies Yield, Derivatives, Oracles Exercise 7-9, Presentation
10-12 Advanced Governance, Security, Future Final Project

Contact

For questions about course content, post in the GitHub Discussions. For personal matters, email the instructor directly.

View Course GitHub View Discussions


Back to top

© 2025 Prof. Dr. Joerg Osterrieder | FHGR - University of Applied Sciences of the Grisons