Skip to content

Conversation

@swen-chan
Copy link

@swen-chan swen-chan commented Jan 19, 2026

This PR improves factual accuracy and avoids common beginner misconceptions in the Uniswap/AMM section:

1.Fix LP fee example (math error)

The previous example stated a pool of 1 ETH + 5000 USDC but claimed the swap output was ~453.31 USDC with 0.997 ETH effective input.

That output corresponds to a pool of 10 ETH + 5000 USDC under constant-product AMM. The example is updated to use 10 ETH + 5000 USDC.

2.Clarify AMM description

Replaces the imprecise claim that AMM “keeps total value balanced” with a more accurate explanation: 它確保報價由池子儲備比例決定並連續調整;當交易規模相對池子較大時,會出現明顯滑點。

3.Add an impermanent loss (IL) reminder

Adds a short note that LP net returns depend on fees minus impermanent loss and costs, to avoid the misconception that providing liquidity is “guaranteed profit”.

4.DEX comparison: add slippage caveat for large trades

Adds a concise note in the DEX characteristics that large trades may face higher slippage (especially in shallow pools), improving realism without expanding scope.

These changes aim to improve correctness for beginners, which is also the target reader of the internship Handbook.

…nent loss note

This PR makes three accuracy-focused improvements to the Uniswap/AMM section:

1.Fix LP fee example (math & consistency)

The previous example stated a pool of 1 ETH + 5000 USDC but claimed the swap output was ~453.31 USDC (with 0.997 ETH effective input).

That output corresponds to a pool of 10 ETH + 5000 USDC under constant-product AMM. The example is updated to use 10 ETH + 5000 USDC, and the LP-share explanation is adjusted to remain internally consistent.

2.Clarify AMM wording

Replaces the imprecise claim that AMM “keeps total value balanced” with a more accurate explanation: pricing is determined by reserve ratios and adjusts continuously; large trades relative to pool size create noticeable slippage.

3.Add an impermanent loss (IL) reminder

Adds a short note that LP net returns depend on fees minus impermanent loss and costs, to avoid the misconception that providing liquidity is “guaranteed profit”.

These changes aim to improve correctness for beginners while keeping the original structure and teaching intent intact.
@swen-chan swen-chan changed the title Fix Uniswap LP fee example math and clarify AMM behavior; add impermanent loss note Fix Uniswap LP fee example math; clarify AMM pricing & DEX slippage; add impermanent loss note Jan 19, 2026
@swen-chan swen-chan changed the title Fix Uniswap LP fee example math; clarify AMM pricing & DEX slippage; add impermanent loss note (zh)Fix Uniswap LP fee example math; clarify AMM pricing & DEX slippage; add impermanent loss note Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant