Andreas Park PRO
Professor of Finance at UofT
Auditing Smart Contracts
Authors: Wayne Landsman, Evgeny Lyandres, Edward Maydew, Daniel Rabetti, Che Zhang
Discussant: Andreas Park
Overview of Discussion
I hope one take home is that there is much more to DeFi than
So what is Blockchain & DeFi about?
payments
stocks, bonds, and options
swaps, CDS, MBS, CDOs
insurance contracts
What would the most efficient financial infrastructure look like?
payments
stocks, bonds, and options
swaps, CDS, MBS, CDOs
insurance contracts
What would the most efficient financial infrastructure look like?
But there is more: TradFi = Intermediated
DeFi = self-determined & open
features
consequences
Blockchain-based Decentralized Finance in a Nutshell
features
What the focus of this paper?
What's special about smart contracts?
What is a smart contract/DeFi application?
some features
some examples
Here's the problem...
A word about tokens: What might token investors be concerned about?
Three Examples of Exploits
Cream Finance
PBS attack
Balancer Rounding Error
What can we do to prevent exploit? What are common fault lines?
What is so special about "auditing" smart contracts?
The cyber-attack \(-\) code-review problem
known
knowns
unknown
knowns
known
unknowns
unknown
unknowns
develop "processes"
get
outside
help
code review space
This Paper: The Code Review Decision
July 31, 2025: "today I am announcing the launch of “Project Crypto”—a Commission-wide initiative to modernize the securities rules and regulations to enable America’s financial markets to move on-chain."
Overall View
Code Review Decision
Audit Effectiveness
Post-Breach Responses
Research Questions
When do you do the review? Circumstances may matter
before launch
bad things have just happened to others
after launch
bad things happen to others
bad things happen to you
What kind of code review?
worry about
decentralized "bounty" program
code audit firm
high repuation (and pricey)
unknown (but cheap)
1. Audit Demand
Main Findings Part 1: Audit Demand
Main Findings - some niggles
variable I'd like to see:
Main Findings: Audit Effectiveness
small niggle:
what I'd like to see:
decentralized "bounty" program
code audit firm
high repuation (and pricey)
unknown (but cheap)
More niggles: Audit Effectiveness
CertiK operates Skynet (continuous monitoring) and public “leaderboards.”
Hacken and Quantstamp co-list clients on Immunefi.
PeckShield routinely posts live vulnerability findings on social media.
Main Findings: Post Breach Effects
key ingredient are systemic risk events
Niggles on Post Breach Effects
Last words: it's still early ...
The view of blockchain, Crypto, and DeFi according to "some"
crazy internet money with no value
a vehicle to create unlimited crazy internet money
utility
tokens
DAOs
NFTs
Meme
other crazy
money
alternative vehicles for vaporware
History of Crypto and Blockchain how I'd like you to see it
single-purpose digital money
general purpose platform
DeFi applications
alternative digital money
alternative smart contract platforms
scaling solutions and higher level (d)apps
money applications
Timeline of DeFi Development vs. Rest of World's Understanding
2008/9
single-purpose blockchain
2014/5
general-purpose network
2017/8
2017/8
stablecoins on Ethereum
2020/1
"simple" finance applications
DAOs
financial engineering
2023/4/5
\(t-8\)
\(t-3\)
treat the blockchain world as a serious attempt to make finance better, more efficient, more competitive, cheaper, faster
Protocol Design Risk
Scale / Exposure
Governance / Transparency
By Andreas Park