Early rate$2,400 of senior audit time for $500. Early members keep the rate as it climbs.$2,400 of senior audit time for $500See how

DeFi Protocol Analysis.

Line-by-line walkthroughs of Uniswap, Aave, Yearn, Liquity, and other protocols, written for engineers reading the source.

Filter
Showing 12 of 32
Fee Growth Outside: The Uniswap V3 Trick Nobody Explains Well
DeFi Protocol AnalysisAug 12, 2026·12 min

Fee Growth Outside: The Uniswap V3 Trick Nobody Explains Well

How much did a position earn while in range, over months of crossings, with no loops and one checkpoint? V3 answers in two subtractions by storing the wrong side on purpose.

Read
Who Eats the Wei: Rounding as a Security Boundary in Uniswap V3
DeFi Protocol AnalysisAug 10, 2026·12 min

Who Eats the Wei: Rounding as a Security Boundary in Uniswap V3

Every division in SqrtPriceMath decides where the lost fraction goes. V3 answers the same way every time: the pool wins. Get one flag backwards and you have built a faucet.

Read
Uniswap V3 Does Not Store the Price
DeFi Protocol AnalysisAug 8, 2026·13 min

Uniswap V3 Does Not Store the Price

Open the V3 pool contract and look for the price. It is not there. What is stored is the square root, in Q64.96, and that single choice is what makes the swap loop affordable.

Read
Why Uniswap V3 Threw Away the LP Token
DeFi Protocol AnalysisAug 7, 2026·13 min

Why Uniswap V3 Threw Away the LP Token

Concentrated liquidity gives 10,000 dollars the depth of 40 million. That one decision forced Uniswap V3 to abandon LP tokens, reserves, and compounding fees. Here is why.

Read
How to Build Compound V2 From Scratch (18 Sections, Line by Line)
DeFi Protocol AnalysisMay 28, 2026·13 min

How to Build Compound V2 From Scratch (18 Sections, Line by Line)

Rebuild Compound V2 from scratch — cTokens, Comptroller, InterestRateModel, and liquidation logic. The second-most-forked DeFi protocol, understood end to end.

Read
Uniswap v4 hook attacks: 4 exploit patterns with PoCs
DeFi Protocol AnalysisMay 25, 2026·25 min

Uniswap v4 hook attacks: 4 exploit patterns with PoCs

The four Uniswap v4 hook attack patterns that cover every public exploit: reentrancy, flag bypass, donation griefing, accounting drift — with minimal PoCs.

Read
Yearn vault security: V2 vs V3 architecture, exploits, and defense patterns
DeFi Protocol AnalysisApr 20, 2026·16 min

Yearn vault security: V2 vs V3 architecture, exploits, and defense patterns

Yearn V2 and V3 vault architecture, exploit case studies (yDAI, yUSDT, Cream), and defense patterns every DeFi auditor and integrator must know.

Read
ERC-3643 vs ERC-1400 for RWA Compliance
DeFi Protocol AnalysisFeb 22, 2026·9 min

ERC-3643 vs ERC-1400 for RWA Compliance

Compare ERC-3643 and ERC-1400 for RWA compliance. See identity checks, partition tradeoffs, ACT risk, forced transfers, and when each token standard fits.

Read
How to Start Your First Uniswap V4 Hook: Essentials, Libraries, and Risks
DeFi Protocol AnalysisFeb 19, 2026·13 min

How to Start Your First Uniswap V4 Hook: Essentials, Libraries, and Risks

Step-by-step guide to building your first Uniswap V4 hook. Learn the essential libraries, contract structure, hook permissions, and critical security considerations for DeFi developers.

Read
Uniswap V2 Code Deep Dive: Router, Factory, Pair & Security Risks
DeFi Protocol AnalysisFeb 18, 2026·11 min

Uniswap V2 Code Deep Dive: Router, Factory, Pair & Security Risks

Uniswap V2 code walkthrough: Router, Factory, and Pair contracts dissected. Understand the price oracle, flash swaps, and the reentrancy risks auditors flag — Zealynx.

Read
Tokenizing Intellectual Property on EVM: Solidity Patterns for Programmable IP Rights
DeFi Protocol AnalysisFeb 13, 2026·9 min

Tokenizing Intellectual Property on EVM: Solidity Patterns for Programmable IP Rights

ERC-721 and ERC-2981 fail for real-world IP. Learn Solidity patterns for programmable royalty splits, copyright decay, and Ricardian contracts — via Zealynx.

Read
Moving Averages in DeFi: Security Vulnerabilities and Attack Prevention
DeFi Protocol AnalysisFeb 10, 2026·14 min

Moving Averages in DeFi: Security Vulnerabilities and Attack Prevention

Moving averages power critical DeFi infrastructure from price oracles to AMMs, but create attack vectors for flash loan manipulation and precision exploits. Learn how to identify vulnerabilities in TWAP, SMA, and EMA implementations, plus proven mitigation strategies.

Read