Price Manipulation Exploits
summary
Describes building a lending protocol on Uniswap V2, then exploiting it by using flash loans and two accounts to borrow all LP tokens, redeposit them as collateral to exceed totalSupply, dump tokens into the pool to double LP price, and borrow profitably — a loop that enables profit despite using a time-weighted average price and the derived formula P = 2*sqrt(p0 p1 K)/totalSupply. Cites Cream Finance Oct 2021 and provides a CTF to reproduce the exploit.
AI-written summary · about
chapters (9)
- 0:00Introduction to speaker
- 0:28Understanding price oracles
- 1:24UniSwap V2 fundamentals
- 3:21Building a lending protocol
- 5:02First price exploit
- 6:29Pricing LP tokens
- 7:51Advanced LP manipulation
- 10:40The LP token exploit cycle
- 15:36Lessons and future security
related talks
33mLive Coding Session
28mCross-Contract Ricochet Attacks & Off-Chain-On-Chain Manipulation of Billion Dollar NFT Collections
31mHigh-Yield Strategies in DeFi
01h 18mAave: Flash Loans and Credit Delegation in Depth
08mFinancial Engineering in DeFi
39mThe challenges of building, scaling and securing DeFi protocols
21mUniswap v4 Exploring New Possibilities
26mIntroduction to Speedrun Ethereum Challenges
