Uniswap V2
Browse all Uniswap V2 articles.
18 min read
How Concentrated Liquidity in Uniswap V3 Works
This article explains how Uniswap V3 implements concentrated liquidity. We assume the reader already understands Uniswap V2.
9 min read
get_D() and get_y() in Curve StableSwap
This article shows algebraically step-by-step how the code for get_D() and get_y() are derived from the StableSwap invariant.
4 min read
UniswapV2Library Code Walkthrough
The Uniswap V2 Library simplifies some interactions with pair contracts and is used heavily by the Router contracts.
11 min read
Fixed Point Arithmetic in Solidity (Using Solady, Solmate, and ABDK as Examples)
A fixed-point number is an integer that stores only the numerator of a fraction — while the denominator is implied.
2 min read
noDelegateCall Explained
The noDelegateCall modifier prevents delegatecall from being sent to a contract.
9 min read
Uniswap V2: Calculating the Settlement Price of an AMM Swap
This article explains how to determine the price settlement of a trading pair in an Automated Market Maker (AMM).
9 min read
Uniswap V2 Architecture: An Introduction to Automated Market Makers
Uniswap is a DeFi app that enables traders to swap one token for another in a trustless manner.
9 min read
Uniswap v2 router code walkthrough
Router02 is Router01 with additional functions for fee on transfer tokens.
8 min read
Breaking Down the Uniswap V2 Swap Function
Uniswap V2’s swap function is cleverly designed, but many devs find its logic counterintuitive the first time they encounter it.
9 min read
Checklist for Technical Writing
Are fluff transitions removed? (”It is important to note, ”Why did they do this?”, “Here’s how we can solve this problem.”) Sometimes, they are necessary…
8 min read
Uniswap V2 Mint and Burn Functions Explained
The lifecycle of Uniswap V2 is someone mints LP tokens (supplies liquidity, i.e. tokens to the pool) for the first time, then a second depositor mints…
9 min read
How the TWAP Oracle in Uniswap v2 Works
Suppose we have 1 Ether and 2,000 USDC in a pool. This implies that the price of Ether is 2,000 USDC.