> ## Documentation Index
> Fetch the complete documentation index at: https://docs.juncta.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Provide Liquidity on Juncta

> Learn how to provide liquidity and configure adaptive mode on Juncta.

export const RelatedLinks = ({title = "Related links", links}) => <div>
    <h2>{title}</h2>
    <ul>
      {links.map((link, i) => <li key={i}>
          <a href={link.href}>{link.label}</a>
        </li>)}
    </ul>
  </div>;

export const urls = (() => {
  const base = "https://app.juncta.xyz";
  return {
    dashboard: base,
    provideLiquidity: `${base}/liquidity/provide`,
    borrow: `${base}/borrow`,
    portfolio: `${base}/portfolio`,
    swap: `${base}/swap`,
    faucet: `${base}/faucet`
  };
})();

## Providing liquidity on Juncta

To provide liquidity on Juncta, you need to select an available liquidity pool or create a new one and deposit the appropriate token pairs of equal value into the pool. Then you can start earning trading fees

<Frame>
  <img src="https://mintcdn.com/juncta/JiTjs35gfEpKucGf/images/lp/add-liquidity.png?fit=max&auto=format&n=JiTjs35gfEpKucGf&q=85&s=4d199df168cdcc1d42afea22eeb2659f" alt="Provide liquidity flow" style={{ borderRadius: "0.5rem" }} width="1920" height="2401" data-path="images/lp/add-liquidity.png" />
</Frame>

1. Select the <a href={urls.provideLiquidity} target="_blank">**Provide Liquidity**</a> tab on
   your dashboard.

2. Select your preferred liquidity pool.
   <Frame>
     <img src="https://mintcdn.com/juncta/UWr0Rf8HwO2VUkrs/images/lp/select-liquidity-pool.png?fit=max&auto=format&n=UWr0Rf8HwO2VUkrs&q=85&s=eb8f42991af3eb38db5a8d5613ca851e" alt="Select pool flow" style={{ borderRadius: "0.5rem" }} width="733" height="179" data-path="images/lp/select-liquidity-pool.png" />
   </Frame>
   You can search for a pool by the symbol or address:
   <Frame>
     <img src="https://mintcdn.com/juncta/JiTjs35gfEpKucGf/images/lp/search-liquidity-pool.png?fit=max&auto=format&n=JiTjs35gfEpKucGf&q=85&s=5067e9d362aa2e2580ebf43268dd694b" alt="Search pool flow" style={{ borderRadius: "0.5rem" }} width="840" height="696" data-path="images/lp/search-liquidity-pool.png" />
   </Frame>
   Alternatively, you can [create a new pool](./how-to-create-a-liquidity-pool)
   if you cannot find an existing one that matches your desired token pair and
   price range.

3. Select your preferred distribution strategy across the available bins.
   <Frame>
     <img src="https://mintcdn.com/juncta/JiTjs35gfEpKucGf/images/lp/select-distribution-strategy.png?fit=max&auto=format&n=JiTjs35gfEpKucGf&q=85&s=de30e000918918587fef1a25753af769" alt="Select distribution strategy flow" style={{ borderRadius: "0.5rem" }} width="969" height="274" data-path="images/lp/select-distribution-strategy.png" />
   </Frame>
   There are three types of distribution strategies to choose from. You can read
   more about the different strategies and how to choose one in our [bin
   strategy guide](./choosing-a-bin-strategy).

4. Deposit the required token pairs into the pool.

   <Frame>
     <img src="https://mintcdn.com/juncta/UWr0Rf8HwO2VUkrs/images/lp/deposit-tokens.png?fit=max&auto=format&n=UWr0Rf8HwO2VUkrs&q=85&s=caa87debbbba420d017286caf3f23ee7" alt="Deposit tokens flow" style={{ borderRadius: "0.5rem" }} width="733" height="167" data-path="images/lp/deposit-tokens.png" />
   </Frame>

   When you input the amount for one token, the dashboard will automatically calculate the required amount of the other token based on the current price and your chosen distribution strategy.

   <Note>
     If you try to deposit all your tokens, you won't have enough balance to pay
     for transaction fees, which will result in a failed transaction. We
     recommend keeping at least 10% of your token balance free to cover for
     transaction fees.
   </Note>

5. If you select the **bid-ask** distribution strategy, you will also need to choose how to provide liquidity on either the bid or ask side of the order book.
   <Frame>
     <img src="https://mintcdn.com/juncta/UWr0Rf8HwO2VUkrs/images/lp/select-bid-ask-distribution.png?fit=max&auto=format&n=UWr0Rf8HwO2VUkrs&q=85&s=e9018ff20f9d001a1944dcb656953029" alt="Bid ask distribution flow" style={{ borderRadius: "0.5rem" }} width="656" height="113" data-path="images/lp/select-bid-ask-distribution.png" />
   </Frame>

6. Select an option for the active bin tolerance. Since the active bin might move before your liquidity gets deposited into the pool, this setting will help you hedge against losses that might arise from price movement. If you do not know what to select, choose the **auto** option recommended by the team.
   <Frame>
     <img src="https://mintcdn.com/juncta/JiTjs35gfEpKucGf/images/lp/active-bin-tolerance.png?fit=max&auto=format&n=JiTjs35gfEpKucGf&q=85&s=fd3af3aae7495608ad861ab27d085702" alt="Active bin tolerance flow" style={{ borderRadius: "0.5rem" }} width="947" height="484" data-path="images/lp/active-bin-tolerance.png" />
   </Frame>

7. Optionally, you can [enable adaptive mode](#enable-adaptive-mode-to-automatically-rebalance-your-liquidity-position) to automatically rebalance your liquidity position as market conditions change. This allows you to maintain an optimal distribution of your liquidity across the bins and maximize your earnings.

8. Finally, click the **Add Liquidity** button to confirm your deposit and start providing liquidity on Juncta.

## Enable adaptive mode to automatically rebalance your liquidity position

Juncta offers an adaptive mode feature that allows liquidity providers to automatically rebalance their liquidity positions as market conditions change.

When you enable adaptive mode, the system will monitor the price movements of the assets in your liquidity pool and adjust your position accordingly to maintain an optimal distribution of your liquidity across the bins. This can help you maximize your earnings by ensuring that your liquidity is always positioned in the most favorable price ranges.

<Frame>
  <img src="https://mintcdn.com/juncta/JiTjs35gfEpKucGf/images/lp/enable-adaptive-mode.png?fit=max&auto=format&n=JiTjs35gfEpKucGf&q=85&s=8c62b61d11046eb437d592b84fd59e6d" alt="Enable adaptive mode flow" style={{ borderRadius: "0.5rem" }} width="855" height="972" data-path="images/lp/enable-adaptive-mode.png" />
</Frame>

<Note>
  When you enable adaptive mode, you will be charged a fee of 8% of the yield
  you earn from that rebalance. This is called the **Adaptive fee** and it is
  charged continuously from accured yield and not charged upfront. For example,
  if you earn 100USD in yield from a rebalance and the adaptive fee is 8%, you
  will be charged 8USD as adaptive fee and receive 92USD.
</Note>

### Configure adaptive mode settings

<Note>
  By default, adaptive mode will trigger a rebalance when more than 60% of your position's capital is inactive **and** the price centre has moved more than 3 bin-widths from your current distribution centre, sustained for at least 30 minutes.

  These are the default values for the sustain window and bin distance, but you can configure custom values to adjust when rebalancing occurs.
</Note>

To enable adaptive mode, do the following:

1. Toggle the **Adaptive mode** switch when providing liquidity or managing your existing liquidity position.
2. Configure your sustain window. In Juncta, a sustain window refers to how long price must stay outside of your current LP range before your position is rebalanced. A shorter sustain window will result in more frequent rebalancing, while a longer sustain window will result in less frequent rebalancing.
   <Frame>
     <img src="https://mintcdn.com/juncta/UWr0Rf8HwO2VUkrs/images/lp/configure-sustain-window.png?fit=max&auto=format&n=UWr0Rf8HwO2VUkrs&q=85&s=a96b5095b24b247a7020318c0676a32a" alt="Configure sustain window flow" style={{ borderRadius: "0.5rem" }} width="887" height="204" data-path="images/lp/configure-sustain-window.png" />
   </Frame>
3. Configure your bin distance. Your bin distance is how many bins away from the LP center, price must move before a rebalance is considered.
   <Frame>
     <img src="https://mintcdn.com/juncta/UWr0Rf8HwO2VUkrs/images/lp/configure-bin-distance.png?fit=max&auto=format&n=UWr0Rf8HwO2VUkrs&q=85&s=b0d63832062be249db073985677615b2" alt="Configure bin distance flow" style={{ borderRadius: "0.5rem" }} width="887" height="223" data-path="images/lp/configure-bin-distance.png" />
   </Frame>

Both your sustain window and bin distance configuration must be met before your position is rebalanced.

For example, if you set a sustain window of 30 minutes and a bin distance of 3 bins, then price must stay outside of your current LP range and be at least 3 bins away from your current position for 30 minutes before your position will be rebalanced.
