
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.
ReadLine-by-line walkthroughs of Uniswap, Aave, Yearn, Liquity, and other protocols, written for engineers reading the source.

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
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
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
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
Rebuild Compound V2 from scratch — cTokens, Comptroller, InterestRateModel, and liquidation logic. The second-most-forked DeFi protocol, understood end to end.
Read
The four Uniswap v4 hook attack patterns that cover every public exploit: reentrancy, flag bypass, donation griefing, accounting drift — with minimal PoCs.
Read
Yearn V2 and V3 vault architecture, exploit case studies (yDAI, yUSDT, Cream), and defense patterns every DeFi auditor and integrator must know.
Read
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
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 walkthrough: Router, Factory, and Pair contracts dissected. Understand the price oracle, flash swaps, and the reentrancy risks auditors flag — Zealynx.
Read
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 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