Terraport
Launch Terraport
  • Welcome to Terraport
  • Terraport FAQ
  • How To
    • Swap
    • Liquidity Providing
    • Staking
    • Liquid Staking
    • Farming
    • Leaderboard
      • Points
    • Launchpad
  • GOVERNANCE
    • Introduction
    • Proposal
    • Voting
  • SAFETY AND SECURITY
    • Audit
    • KYC
    • Bug Bounty
    • Safety and Risk Advice
      • Regulatory Advice
      • Terraport Advanced Products
      • Specific Risks of Cryptoassets
  • Developers
    • Mint Your CW20 Token
    • Create Your Own Pair
    • Query
  • Resources
    • Contracts
    • API
    • Roadmap
  • Sponsorship
    • Banner
  • Contact Us
    • Social Account & Communities
Powered by GitBook
On this page
  • Who is a Liquidity Provider?
  • How to Add Liquidity
  • LP Tokens
  • How to Remove Liquidity

Was this helpful?

  1. How To

Liquidity Providing

PreviousSwapNextStaking

Last updated 10 months ago

Was this helpful?

Who is a Liquidity Provider?

A liquidity provider makes his funds available to increase the amount of tokens in a pool, earning 'LP tokens' in proportion to the amount of assets he puts into the pool. Each time a transaction is made, 0.22% of the transaction fee is distributed among all liquidity providers.

Terraport pools keep their reserves balanced according to the following equation:

Rx x Ry = K

Rx and Ry are the reserves of token X and token Y, respectively, and K is a constant. Each asset trade will change the values of Rx and Ry, but only in ways that satisfy this equation. If a trader wishes to sell ∆x amount of X tokens, he will receive ∆y amount of Y tokens such that:

(Rx+∆x)(Ry-∆Y) = K

To add liquidity, liquidity providers deposit X tokens and Y tokens at a ratio that matches the current price (Rx / Ry). The additional liquidity increases the value of k. Intuitively, with more liquidity in reserve, traders will receive more output (∆y) for a given input (∆x). Thus, higher liquidity reduces trade slippage.

The liquidity pool will also allow to stake LP tokens to earn $TERRA tokens in the “Farms.”

How to Add Liquidity

  1. Go to the "Trade" page.

  2. Click the “Provide” button on the Swap Tab.

  3. Choose the tokens you want to add to the liquidity pool, enter an amount on the first section, the other will be calculated and filled in automatically (you must have the right amount of both tokens in your wallet).

  4. Make sure you have enough $LUNC to pay the gas fees and click "PROVIDE".

  5. You will see your new liquidity position on the Trade section.

LP Tokens

After depositing a pair of tokens into a liquidity pool, you will receive the LP tokens as a “receipt”.

LP Tokens indicate your share within the pool and allow you to get your deposit back, plus any interest earned.

How to Remove Liquidity

  1. Go to the Trade page.

  2. Click the “Withdraw” button in the Swap Tab.

  3. Enter the amount of LP tokens you want to withdraw.

  4. Make sure you have enough $LUNC to pay the gas fees and click "WITHDRAW".