defi

Wyjaśnienie pul płynności: jak działają i dlaczego są opodatkowane

Kompletny przewodnik po pulach płynności, jak one działają i jakie mają implikacje podatkowe. Dowiedz się, dlaczego depozyty LP są opodatkowane i jak śledzić podstawę kosztową.

📖 8 min read

Wpłacasz 1 ETH i 1 000 USDC do puli płynności Uniswap. Tydzień później wypłacasz 0,95 ETH i 1 050 USDC. Czy zarobiłeś 50 dolarów? Straciłeś 50 dolarów? Czy jest to podlegające opodatkowaniu? Większość programów do rozliczeń podatkowych nie ma o tym pojęcia — i to stanowi problem.

What Are Liquidity Pools?

Liquidity pools are smart contract-based pools where users deposit pairs of tokens, like ETH and USDC, to facilitate decentralized trading. Instead of relying on a centralized order book, traders swap tokens directly against the pool. In return, liquidity providers (LPs) earn fees generated from trades. Think of it as a cosmic marketplace where your tokens help power trades, and in return, you earn a share of the fees.

How Liquidity Pools Work

When you deposit tokens into a pool, you receive LP tokens representing your share of the pool. These LP tokens are like cosmic certificates of your ownership. As traders swap tokens, the pool’s balances change, and so does your share. You can withdraw your tokens at any time, returning your LP tokens to the contract, which burns them and pays out your proportional amount of ETH and USDC. [Diagram suggestions: Pool deposit/withdrawal flow, impermanent loss visualization] For example, depositing 1 ETH worth $2,000 and 1,000 USDC worth $1,000 creates a pool with a total value of $3,000. If the pool’s total LP tokens represent this $3,000, then your LP tokens correspond to your share of that total. When you withdraw, the pool calculates your share, adjusting for fees and price changes.

Tax Treatment of Liquidity Pool Transactions

The IRS hasn't specifically addressed liquidity pools, so there's ongoing debate. Most tax professionals agree that depositing tokens into a pool is a taxable event—it's a swap or sale of those assets, disposing of your original tokens in exchange for LP tokens. When you earn swap fees, these are considered ordinary income when claimed. Withdrawing your tokens from the pool is also a taxable event, as you are disposing of your LP tokens and receiving underlying assets. **Deposit (ETH + USDC → LP Token):** Many treat this as a taxable swap, meaning you dispose of ETH and USDC at their current market prices. If the combined value differs from your cost basis, you recognize gains or losses. **Swap Fees (Earned in the LP):** Fees accumulated are generally considered ordinary income when you claim or withdraw them. These should be tracked and reported as income. **Withdrawal (LP Token → ETH + USDC):** When you redeem your LP tokens, the IRS considers this a sale of your LP token. The basis of your LP tokens is your initial deposit plus any fees claimed. The value of the underlying assets at withdrawal determines your gain or loss. **Impermanent Loss:** Price fluctuations between deposit and withdrawal can create gains or losses. These are real economic outcomes and should be reflected in your tax calculations. Until the IRS issues clear guidance, most tax professionals advise treating LP deposits and withdrawals as taxable swaps or sales, with careful tracking of basis and gains.

Common Liquidity Pool Tax Mistakes

Not recognizing fee collection as income

Why

Many users think swap fees are just returns on capital, not income

Fix

Track all fee claims and consider them ordinary income at the time of claim

⚠️ Cost

Could owe taxes on hundreds or thousands of dollars of unreported income

Ignoring the taxable event at withdrawal

Why

Some assume withdrawing is a non-taxable event

Fix

Treat withdrawal as a sale of LP tokens, recognizing gain or loss

⚠️ Cost

Potential underreporting and IRS penalties

Failing to track basis accurately

Why

Basis is complicated by multiple deposits, fees, and price changes

Fix

Use detailed records and software to maintain basis across all transactions

⚠️ Cost

Incorrect gains, risking audit or penalties

How Moonscape Handles Liquidity Pools

Moonscape automatically detects your LP deposits, withdrawals, and fee claims. We track your basis for each deposit, adjusting for fees and price changes. When you withdraw, our system matches your LP tokens to the original deposit, calculating your gains or losses precisely. Features include: - Automatic LP token detection - Fee claim recognition and income calculation - Accurate basis tracking across multiple deposits and withdrawals - Impermanent loss estimation for your reference This means you can rely on Moonscape to keep your tax reporting accurate, even in complex LP scenarios.

Best Practices for LP Tax Compliance

LP Transaction Types and Tax Treatment

transactiontreatmentnotes
Deposit ETH + USDCTaxable swap (disposal of both assets)Most tax pros treat this as a sale of each asset at current market value
Earn swap feesOrdinary income when claimedFees are assets received; treat as income
Withdraw LP tokensSale or exchange of LP tokenRealizes gains/losses based on basis and market value at withdrawal

Scenario: Depositing and Withdrawing Liquidity

  1. Day 1: Buy 1 ETH for $2,000 and 1,000 USDC for $1,000.
  2. Day 1: Deposit ETH and USDC into Uniswap pool, receiving LP tokens valued at $3,000.
  3. Day 7: Price of ETH rises to $2,200; USDC unchanged.
  4. Day 7: Withdraw your LP tokens, receiving 0.95 ETH worth $2,090 and 1,050 USDC.
  5. Tax impact: You disposed of your original assets, realizing a gain of $90 on ETH (basis $2,000, received $2,090).

💰 Tax Impact:

This withdrawal is a taxable event. You recognize capital gains based on the difference between your basis and the market value of assets received.

Frequently Asked Questions

Is depositing into a liquidity pool taxable?

Yes. Most tax professionals treat it as a taxable swap where you dispose of your original tokens and receive LP tokens as a new asset. The disposal price is the market value at the time of deposit.

Are swap fees earned from LPs taxable?

Yes. These fees are assets received and should be treated as ordinary income when claimed or withdrawn. Track and report these as part of your income.

Do I pay taxes when I withdraw my LP tokens?

Yes. Withdrawing LP tokens is considered a sale or exchange. You need to calculate gains or losses based on your basis in the LP tokens.

Related Reading

Automatycznie śledź swoje pozycje LP, roszczenia opłat i wypłaty. Moonscape wykrywa pule i oblicza podatki, abyś nie musiał tego robić.

Try Moonscape

More In Defi