流動性プール
流動性の提供
「流動性プール」はCoddyKit上の無料Web3 & DApp Development Fundamentalsレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはWeb3 & DApp Development Fundamentals学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Web3 & DApp Development Fundamentalsコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
What Is a Liquidity Pool?
A liquidity pool is the reserve of two (or more) tokens locked in an AMM smart contract that traders swap against.
Without liquidity there is nothing to trade against, so pools are the foundation of every DEX.
Liquidity Providers (LPs)
A liquidity provider deposits tokens into a pool to enable trading and earn a share of the fees.
Anyone can become an LP — you simply supply both tokens of the pair in the correct ratio.
Depositing in the Correct Ratio
You must add both tokens proportional to the current reserves so you do not shift the price.
If the pool is 1 ETH : 2000 USDC, you deposit in that same ratio.
Pool ratio: 1 ETH : 2000 USDC
To add liquidity with 5 ETH
-> you also add 10000 USDCLP Tokens
In return for your deposit, the pool mints LP tokens representing your share of the reserves.
Burning your LP tokens later lets you withdraw your portion plus accrued fees.
mint LPtokens = pool.totalSupply *
(deposited / reserves)
// LP tokens = proof of your shareEarning Trading Fees
Every swap pays a fee that stays in the pool. As fees accumulate, the value backing each LP token grows.
Your earnings are proportional to your share and the pool's trading volume.
Impermanent Loss
Impermanent loss is the opportunity cost an LP suffers when the two tokens diverge in price compared to simply holding them.
The AMM rebalances the pool as prices move, leaving you with more of the falling asset and less of the rising one.
Why It Is Called Impermanent
The loss is impermanent because it disappears if prices return to their original ratio. It only becomes real when you withdraw at a diverged price.
Fees earned can offset or exceed impermanent loss, which is why high-volume pools remain attractive.
Price diverges -> paper loss vs holding
Price returns -> loss vanishes
Withdraw while diverged -> loss realizedStable Pairs Have Less IL
Pools of similar assets (USDC/DAI) barely diverge in price, so impermanent loss is minimal.
This is why stablecoin pools on protocols like Curve are popular with conservative LPs.
Pool Depth and Slippage
The more liquidity a pool holds, the less each trade moves the price. Deep pools offer low slippage and attract more volume.
More volume means more fees, which attracts more liquidity — a reinforcing cycle.
Liquidity Mining Incentives
To bootstrap a new pool, protocols often offer liquidity mining: extra reward tokens on top of trading fees.
These incentives jump-start liquidity but can fade once rewards end, so LPs must weigh long-term viability.
Putting It Together
Liquidity pools let anyone supply token pairs, receive LP tokens, and earn fees. The trade-off is impermanent loss when prices diverge, partially offset by fees and incentives.
Next we build a simple swap to see the mechanics in code.
Quick Check
Test your liquidity pool knowledge.
Recap: Liquidity Pools
You learned that:
- LPs deposit token pairs and receive LP tokens
- They earn a share of trading fees
- Impermanent loss arises when prices diverge
- Deep pools mean low slippage; incentives bootstrap liquidity
Next: coding a basic swap.
よくある質問
「流動性プール」レッスンは無料ですか?
はい。「流動性プール」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Web3 & DApp Development Fundamentalsコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Web3 & DApp Development Fundamentalsコースには全4レッスンが含まれています。
「流動性プール」で何を学びますか?
流動性の提供 ブラウザで直接実行するハンズオンコードでWeb3 & DApp Development Fundamentalsを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
Web3 & DApp Development Fundamentalsを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのWeb3 & DApp Development Fundamentalsは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。
「流動性プール」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このWeb3 & DApp Development Fundamentalsレッスンでコードを書いて実行できますか?
はい。すべてのWeb3 & DApp Development Fundamentalsレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。