BR Academy
0%
Module 4: Liquidity Pools and Yield·Lesson 19 of 30·12 min

Providing Liquidity: A Worked Example

With fee income, impermanent loss, correlation, and yield sources all covered, this lesson walks through the actual end-to-end mechanics of becoming a liquidity provider, from deposit to withdrawal, so you can turn the theory from this module into a real (or test) transaction.

The process has four stages. Stage one: choose a pair and review both the pool's current fee APR and your own worst-case IL estimate using the frameworks from the previous three lessons — don't skip this step just because the deposit interface makes it easy to click through quickly. Stage two: deposit equal value of both tokens; the interface calculates the exact quantities needed for the pool's current ratio (which may not be an even 50/50 split in dollar terms if the pool uses a non-standard weighting, though most beginner-friendly pools are standard 50/50). You'll need to approve both tokens (from Module 2) if this is your first interaction with this specific pool contract. Stage three: confirm the deposit transaction and receive an LP token in your wallet, representing your proportional share, exactly as described in the "How Liquidity Pools Work" lesson. Stage four: at some point in the future, you withdraw by redeeming your LP token, which converts back into the two underlying tokens at whatever the pool's ratio is at that moment — plus your accumulated share of fees — which may differ meaningfully from your original 50/50 deposit if prices have moved, exactly as the impermanent loss lesson explained.

Tracking real numbers through this full cycle — not just reading about it — is what turns impermanent loss and fee yield from abstract formulas into something you can calculate from your own experience.

Worked Example

Suppose you deposit $250 of ETH and $250 of USDC into an ETH/USDC pool. The interface calculates the exact token amounts needed given the pool's current ratio (close to, but perhaps not exactly, an even split depending on the live price), you approve both tokens if needed, confirm the deposit transaction, and receive an LP token representing your share — say, 0.05% of the pool's total value at that moment.

Three weeks later, you decide to withdraw. Over that period, ETH's price has risen about 15% relative to USDC, and the pool has generated steady trading fee revenue. When you redeem your LP token, you receive back a combination of ETH and USDC that reflects both effects: slightly less ETH in quantity than your original deposit (because the pool automatically rebalanced as ETH appreciated, exactly as the impermanent loss lesson described), but a total dollar value modestly higher than your original $500, because the accumulated trading fees more than offset the impermanent loss from this relatively moderate 15% price move. Calculating your actual realized return — total value withdrawn versus total value deposited, compared to what simply holding the original ETH and USDC would have been worth — gives you a real, personal data point for the fee-versus-IL comparison from the "LP Math" lesson.

It's worth planning your exit conditions before you deposit, not after, applying the same discipline you'll use for every other DeFi position in this course. Before confirming stage two, decide in advance: at what IL percentage, or after what calendar period, would you withdraw regardless of how fees are performing? Deciding this in a calm moment before you're emotionally invested in a position — rather than in the middle of a sharp price move, when the temptation is to wait and hope prices revert — is exactly the kind of pre-committed decision-making the safe-workflow lesson in Module 6 formalizes, and it applies directly to liquidity positions as much as to swaps or lending.

Common Pitfalls

  • Depositing into a new pool the moment you see a high advertised APR, without checking its fee-versus-IL profile first. The four-stage process above exists specifically to slow this impulse down.
  • Forgetting to account for the gas cost of both deposit and withdrawal when calculating realized returns. On networks with meaningful gas fees, two transactions (deposit and withdrawal) plus any approvals can meaningfully eat into a small position's net return.
  • Not recording your entry price ratio. Without knowing the exact price ratio at deposit, you can't accurately calculate your own impermanent loss at withdrawal — note it the moment you deposit, not after.

Exercise

Using a testnet if available, or a very small real deposit if you're comfortable with it, provide liquidity to one pool following the four stages described above. Record your exact deposited amounts (both tokens, in both quantity and dollar value at time of deposit) and the LP token received.

After a few days (or whatever time frame your testnet or real deposit allows), withdraw your liquidity and record the exact amounts received back. Calculate your realized fee income and your realized impermanent loss (or gain, if prices happened not to diverge) by comparing your withdrawal value to what you would have had by simply holding your original deposit amounts outside the pool. Keep this complete record — like your first swap data, it's a legitimate, personal data point you can reference in your Module 7 capstone strategy document.

Recap

  • Providing liquidity has four stages: evaluate the pair's fee-versus-IL profile, deposit equal value with any needed approvals, hold the resulting LP token, and withdraw to realize both fees and any impermanent loss.
  • Your real deposit and withdrawal amounts let you calculate an actual, personal realized return rather than relying on an advertised APR.
  • This recorded real-transaction data becomes usable evidence for your Module 7 capstone strategy, just like your first-swap data from Module 3.

Resources

Module quiz

6 questions · pass mark 70% · retake any time

1. What does a liquidity provider (LP) deposit into a typical two-token AMM pool?
2. What is impermanent loss?
3. Why is impermanent loss called 'impermanent' rather than simply 'loss'?
4. In LP math, when does providing liquidity tend to beat simply holding the two assets?
5. Which of these is NOT a typical source of DeFi yield mentioned in the course?
6. A pool pair made of two correlated stablecoins (e.g., USDC/USDT) generally has: